1 // Permission is hereby granted, free of charge, to any person obtaining
2 // a copy of this software and associated documentation files (the
3 // "Software"), to deal in the Software without restriction, including
4 // without limitation the rights to use, copy, modify, merge, publish,
5 // distribute, sublicense, and/or sell copies of the Software, and to
6 // permit persons to whom the Software is furnished to do so, subject to
7 // the following conditions:
9 // The above copyright notice and this permission notice shall be
10 // included in all copies or substantial portions of the Software.
12 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
13 // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
14 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
15 // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
16 // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
17 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
18 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20 // Copyright (c) 2005 Novell, Inc. (http://www.novell.com)
23 // Peter Bartok <pbartok@novell.com>
28 using System.ComponentModel;
31 using System.Runtime.InteropServices;
32 using System.Runtime.Serialization;
34 namespace System.Windows.Forms {
35 [MonoTODO("Possibly implement this for Win32; find a way for Linux and Mac")]
36 [DefaultEvent("Enter")]
37 [Designer("System.Windows.Forms.Design.AxHostDesigner, " + Consts.AssemblySystem_Design, "System.ComponentModel.Design.IDesigner")]
38 [DesignTimeVisible(false)]
40 [ClassInterface (ClassInterfaceType.AutoDispatch)]
42 public abstract class AxHost : Control, ISupportInitialize, ICustomTypeDescriptor {
43 #region AxHost Subclasses
44 #region AxHost.ActiveXInvokeKind Enum
45 public enum ActiveXInvokeKind {
50 #endregion // AxHost.ActiveXInvokeKind Enum
52 #region AxHost.AxComponentEditor Class
54 public class AxComponentEditor : System.Windows.Forms.Design.WindowsFormsComponentEditor {
55 public AxComponentEditor ()
57 throw new NotImplementedException("COM/ActiveX support is not implemented");
60 public override bool EditComponent (ITypeDescriptorContext context, object obj, IWin32Window parent)
62 throw new NotImplementedException("COM/ActiveX support is not implemented");
65 #endregion // AxHost.AxComponentEditor Class
67 #region AxHost.ClsidAttribute
68 [AttributeUsage(AttributeTargets.Class,Inherited=false)]
69 public sealed class ClsidAttribute : Attribute {
72 public ClsidAttribute (string clsid)
81 #endregion AxHost.ClsidAttribute
83 #region AxHost.ConnectionPointCookie
84 public class ConnectionPointCookie {
85 public ConnectionPointCookie (object source, object sink, Type eventInterface)
87 throw new NotImplementedException("COM/ActiveX support is not implemented");
90 public void Disconnect ()
92 throw new NotImplementedException("COM/ActiveX support is not implemented");
95 ~ConnectionPointCookie ()
97 throw new NotImplementedException("COM/ActiveX support is not implemented");
100 #endregion // AxHost.ConnectionPointCookie
102 #region AxHost.InvalidActiveXStateException Class
103 public class InvalidActiveXStateException : Exception {
104 public InvalidActiveXStateException ()
106 throw new NotImplementedException("COM/ActiveX support is not implemented");
109 public InvalidActiveXStateException (string name, ActiveXInvokeKind kind)
111 throw new NotImplementedException("COM/ActiveX support is not implemented");
114 public override string ToString ()
116 throw new NotImplementedException("COM/ActiveX support is not implemented");
119 #endregion // AxHost.InvalidActiveXStateException Class
121 #region AxHost.State Class
123 [TypeConverter("System.ComponentModel.TypeConverter, " + Consts.AssemblySystem)]
124 public class State : ISerializable {
125 public State (Stream ms, int storageType, bool manualUpdate, string licKey)
127 //throw new NotImplementedException("COM/ActiveX support is not implemented");
130 protected State (SerializationInfo info, StreamingContext context)
134 void ISerializable.GetObjectData (SerializationInfo si,StreamingContext context)
136 //throw new NotImplementedException("COM/ActiveX support is not implemented");
139 #endregion // AxHost.State Class
141 #region AxHost.TypeLibraryTimeStampAttribute Class
142 [AttributeUsage(AttributeTargets.Assembly, Inherited=false)]
143 public sealed class TypeLibraryTimeStampAttribute : Attribute {
144 public TypeLibraryTimeStampAttribute (string timestamp)
146 throw new NotImplementedException("COM/ActiveX support is not implemented");
149 public DateTime Value {
151 throw new NotImplementedException("COM/ActiveX support is not implemented");
155 #endregion // AxHost.TypeLibraryTimeStampAttribute Class
157 #region AxHost.StateConverter Class
158 public class StateConverter : System.ComponentModel.TypeConverter {
159 public StateConverter ()
161 throw new NotImplementedException("COM/ActiveX support is not implemented");
164 public override bool CanConvertFrom (ITypeDescriptorContext context, Type sourceType)
166 throw new NotImplementedException("COM/ActiveX support is not implemented");
169 public override bool CanConvertTo (ITypeDescriptorContext context, Type destinationType)
171 throw new NotImplementedException("COM/ActiveX support is not implemented");
174 public override object ConvertFrom (ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value)
176 throw new NotImplementedException("COM/ActiveX support is not implemented");
179 public override object ConvertTo (ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value, Type destinationType)
181 throw new NotImplementedException("COM/ActiveX support is not implemented");
184 #endregion // AxHost.StateConverter Class
185 #endregion // AxHost Subclasses
188 //private Guid clsid;
189 private AboutBoxDelegate aboutDelegate = null;
190 private AxHost.State ocxState = null;
192 #region Protected Constructors
195 protected AxHost (string clsid) : this(clsid, 0)
201 protected AxHost (string clsid, int flags)
203 //this.clsid = new Guid(clsid);
204 //this.flags = flags;
206 #endregion // Public Instance Properties
208 #region Public Instance Properties
210 [EditorBrowsable (EditorBrowsableState.Never)]
211 public override Color BackColor {
213 return base.BackColor;
216 base.BackColor = value;
221 [EditorBrowsable (EditorBrowsableState.Never)]
222 [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
223 public override Image BackgroundImage {
225 return base.BackgroundImage;
229 base.BackgroundImage = value;
234 [EditorBrowsable (EditorBrowsableState.Never)]
235 [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
236 public override ImageLayout BackgroundImageLayout {
238 return base.BackgroundImageLayout;
242 base.BackgroundImageLayout = value;
247 [EditorBrowsable (EditorBrowsableState.Advanced)]
248 [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
249 public ContainerControl ContainingControl {
251 throw new NotImplementedException("COM/ActiveX support is not implemented");
255 throw new NotImplementedException("COM/ActiveX support is not implemented");
260 [EditorBrowsable (EditorBrowsableState.Never)]
261 public override ContextMenu ContextMenu {
263 return base.ContextMenu;
267 base.ContextMenu = value;
272 [EditorBrowsable (EditorBrowsableState.Never)]
273 public override Cursor Cursor {
284 [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
285 [EditorBrowsable (EditorBrowsableState.Advanced)]
286 public bool EditMode {
288 throw new NotImplementedException("COM/ActiveX support is not implemented");
293 [EditorBrowsable (EditorBrowsableState.Never)]
294 public new virtual bool Enabled {
300 base.Enabled = value;
305 [EditorBrowsable (EditorBrowsableState.Never)]
306 public override Font Font {
317 [EditorBrowsable (EditorBrowsableState.Never)]
318 public override Color ForeColor {
320 return base.ForeColor;
324 base.ForeColor = value;
329 [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
330 [EditorBrowsable (EditorBrowsableState.Advanced)]
331 public bool HasAboutBox {
333 return aboutDelegate != null;
338 [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
339 [EditorBrowsable (EditorBrowsableState.Never)]
340 public new ImeMode ImeMode {
345 base.ImeMode = value;
350 [DefaultValue (null)]
351 [EditorBrowsable (EditorBrowsableState.Advanced)]
352 [RefreshProperties (RefreshProperties.All)]
353 public AxHost.State OcxState {
359 if (ocxState == value || value == null)
363 this.ocxState = value;
368 [EditorBrowsable (EditorBrowsableState.Never)]
370 public new virtual bool RightToLeft {
372 return base.RightToLeft == System.Windows.Forms.RightToLeft.Yes;
376 base.RightToLeft = (value ? System.Windows.Forms.RightToLeft.Yes :
377 System.Windows.Forms.RightToLeft.No);
381 public override ISite Site {
383 throw new NotImplementedException("COM/ActiveX support is not implemented");
388 [EditorBrowsable (EditorBrowsableState.Never)]
389 public override string Text {
390 get { return base.Text; }
391 set { base.Text = value; }
393 #endregion // Protected Constructors
395 #region Protected Instance Properties
396 protected override CreateParams CreateParams {
397 get { return base.CreateParams; }
400 protected override Size DefaultSize {
402 return new Size (75, 23);
405 #endregion // Protected Instance Properties
407 #region Protected Static Methods
408 [CLSCompliant(false)]
409 [EditorBrowsable (EditorBrowsableState.Advanced)]
410 protected static Color GetColorFromOleColor (uint color)
412 throw new NotImplementedException("COM/ActiveX support is not implemented");
415 [EditorBrowsable (EditorBrowsableState.Advanced)]
416 protected static Font GetFontFromIFont (object font)
418 throw new NotImplementedException("COM/ActiveX support is not implemented");
421 [EditorBrowsable (EditorBrowsableState.Advanced)]
422 protected static Font GetFontFromIFontDisp (object font)
424 throw new NotImplementedException("COM/ActiveX support is not implemented");
427 [EditorBrowsable (EditorBrowsableState.Advanced)]
428 protected static object GetIFontDispFromFont (Font font)
430 throw new NotImplementedException("COM/ActiveX support is not implemented");
433 [EditorBrowsable (EditorBrowsableState.Advanced)]
434 protected static object GetIFontFromFont (Font font)
436 throw new NotImplementedException("COM/ActiveX support is not implemented");
439 [EditorBrowsable (EditorBrowsableState.Advanced)]
440 protected static object GetIPictureDispFromPicture (Image image)
442 throw new NotImplementedException("COM/ActiveX support is not implemented");
445 [EditorBrowsable (EditorBrowsableState.Advanced)]
446 protected static object GetIPictureFromCursor (Cursor cursor)
448 throw new NotImplementedException("COM/ActiveX support is not implemented");
451 [EditorBrowsable (EditorBrowsableState.Advanced)]
452 protected static object GetIPictureFromPicture (Image image)
454 throw new NotImplementedException("COM/ActiveX support is not implemented");
457 [EditorBrowsable (EditorBrowsableState.Advanced)]
458 protected static double GetOADateFromTime (DateTime time)
460 throw new NotImplementedException("COM/ActiveX support is not implemented");
463 [CLSCompliant(false)]
464 [EditorBrowsable (EditorBrowsableState.Advanced)]
465 protected static uint GetOleColorFromColor (Color color)
467 throw new NotImplementedException("COM/ActiveX support is not implemented");
470 [EditorBrowsable (EditorBrowsableState.Advanced)]
471 protected static Image GetPictureFromIPicture (object picture)
473 throw new NotImplementedException("COM/ActiveX support is not implemented");
476 [EditorBrowsable (EditorBrowsableState.Advanced)]
477 protected static Image GetPictureFromIPictureDisp (object picture)
479 throw new NotImplementedException("COM/ActiveX support is not implemented");
482 [EditorBrowsable (EditorBrowsableState.Advanced)]
483 protected static DateTime GetTimeFromOADate (double date)
485 throw new NotImplementedException("COM/ActiveX support is not implemented");
487 #endregion // Protected Static Methods
489 #region Public Instance Methods
490 [EditorBrowsable (EditorBrowsableState.Advanced)]
492 public void BeginInit ()
496 public void DoVerb (int verb)
498 throw new NotImplementedException("COM/ActiveX support is not implemented");
501 [EditorBrowsable (EditorBrowsableState.Advanced)]
503 public void EndInit ()
507 [EditorBrowsable (EditorBrowsableState.Advanced)]
508 public object GetOcx ()
510 throw new NotImplementedException("COM/ActiveX support is not implemented");
513 public bool HasPropertyPages ()
515 throw new NotImplementedException("COM/ActiveX support is not implemented");
518 [EditorBrowsable (EditorBrowsableState.Advanced)]
519 public void InvokeEditMode ()
521 throw new NotImplementedException("COM/ActiveX support is not implemented");
524 [EditorBrowsable (EditorBrowsableState.Advanced)]
525 public void MakeDirty ()
527 throw new NotImplementedException("COM/ActiveX support is not implemented");
530 public override bool PreProcessMessage (ref Message msg)
532 throw new NotImplementedException("COM/ActiveX support is not implemented");
535 public void ShowAboutBox ()
537 if (aboutDelegate != null)
538 this.aboutDelegate();
541 public void ShowPropertyPages ()
543 throw new NotImplementedException("COM/ActiveX support is not implemented");
546 public void ShowPropertyPages (Control control)
548 throw new NotImplementedException("COM/ActiveX support is not implemented");
550 #endregion // Public Instance Methods
552 #region Protected Instance Methods
553 protected virtual void AttachInterfaces ()
555 throw new NotImplementedException("COM/ActiveX support is not implemented");
558 protected override void CreateHandle ()
560 throw new NotImplementedException("COM/ActiveX support is not implemented");
563 protected virtual object CreateInstanceCore (Guid clsid)
565 throw new NotImplementedException("COM/ActiveX support is not implemented");
568 [EditorBrowsable (EditorBrowsableState.Advanced)]
569 protected virtual void CreateSink ()
571 throw new NotImplementedException("COM/ActiveX support is not implemented");
574 protected override void DestroyHandle ()
576 throw new NotImplementedException("COM/ActiveX support is not implemented");
579 [EditorBrowsable (EditorBrowsableState.Advanced)]
580 protected virtual void DetachSink ()
582 throw new NotImplementedException("COM/ActiveX support is not implemented");
585 protected override void Dispose (bool disposing)
587 throw new NotImplementedException("COM/ActiveX support is not implemented");
590 [EditorBrowsable (EditorBrowsableState.Never)]
591 public new void DrawToBitmap (Bitmap bitmap, Rectangle targetBounds)
593 throw new NotImplementedException("COM/ActiveX support is not implemented");
596 [EditorBrowsable (EditorBrowsableState.Advanced)]
597 protected new virtual Rectangle GetScaledBounds (Rectangle bounds, SizeF factor, BoundsSpecified specified)
599 throw new NotImplementedException("COM/ActiveX support is not implemented");
602 protected override bool IsInputChar (char charCode)
604 throw new NotImplementedException("COM/ActiveX support is not implemented");
607 protected override void OnBackColorChanged (EventArgs e)
609 base.OnBackColorChanged(e);
612 protected override void OnFontChanged (EventArgs e)
614 base.OnFontChanged(e);
617 protected override void OnForeColorChanged (EventArgs e)
619 base.OnForeColorChanged(e);
622 protected override void OnHandleCreated (EventArgs e)
624 throw new NotImplementedException("COM/ActiveX support is not implemented");
627 protected virtual void OnInPlaceActive ()
629 throw new NotImplementedException("COM/ActiveX support is not implemented");
632 [EditorBrowsable (EditorBrowsableState.Advanced)]
633 protected override void OnLostFocus (EventArgs e)
635 throw new NotImplementedException("COM/ActiveX support is not implemented");
638 protected override bool ProcessDialogKey (Keys keyData)
640 return base.ProcessDialogKey(keyData);
643 protected override bool ProcessMnemonic (char charCode)
645 throw new NotImplementedException("COM/ActiveX support is not implemented");
648 [EditorBrowsable (EditorBrowsableState.Advanced)]
649 protected bool PropsValid ()
651 throw new NotImplementedException("COM/ActiveX support is not implemented");
654 [EditorBrowsable (EditorBrowsableState.Advanced)]
655 protected void RaiseOnMouseDown (short button, short shift, int x, int y)
657 throw new NotImplementedException("COM/ActiveX support is not implemented");
660 [EditorBrowsable (EditorBrowsableState.Advanced)]
661 protected void RaiseOnMouseDown (short button, short shift, float x, float y)
663 throw new NotImplementedException("COM/ActiveX support is not implemented");
666 [EditorBrowsable (EditorBrowsableState.Advanced)]
667 protected void RaiseOnMouseDown (object o1, object o2, object o3, object o4)
669 throw new NotImplementedException("COM/ActiveX support is not implemented");
672 [EditorBrowsable (EditorBrowsableState.Advanced)]
673 protected void RaiseOnMouseMove (short button, short shift, int x, int y)
675 throw new NotImplementedException("COM/ActiveX support is not implemented");
678 [EditorBrowsable (EditorBrowsableState.Advanced)]
679 protected void RaiseOnMouseMove (short button, short shift, float x, float y)
681 throw new NotImplementedException("COM/ActiveX support is not implemented");
684 [EditorBrowsable (EditorBrowsableState.Advanced)]
685 protected void RaiseOnMouseMove (object o1, object o2, object o3, object o4)
687 throw new NotImplementedException("COM/ActiveX support is not implemented");
690 [EditorBrowsable (EditorBrowsableState.Advanced)]
691 protected void RaiseOnMouseUp (short button, short shift, int x, int y)
693 throw new NotImplementedException("COM/ActiveX support is not implemented");
696 [EditorBrowsable (EditorBrowsableState.Advanced)]
697 protected void RaiseOnMouseUp (short button, short shift, float x, float y)
699 throw new NotImplementedException("COM/ActiveX support is not implemented");
702 [EditorBrowsable (EditorBrowsableState.Advanced)]
703 protected void RaiseOnMouseUp (object o1, object o2, object o3, object o4)
705 throw new NotImplementedException("COM/ActiveX support is not implemented");
708 protected void SetAboutBoxDelegate (AxHost.AboutBoxDelegate d)
710 this.aboutDelegate = d;
713 protected override void SetBoundsCore (int x, int y, int width, int height, BoundsSpecified specified)
715 base.SetBoundsCore(x, y, width, height, specified);
718 protected override void SetVisibleCore (bool value)
720 throw new NotImplementedException("COM/ActiveX support is not implemented");
723 protected override void WndProc (ref Message m)
725 throw new NotImplementedException("COM/ActiveX support is not implemented");
727 #endregion // Protected Instance Methods
731 [EditorBrowsable (EditorBrowsableState.Never)]
732 public new event EventHandler BackColorChanged {
733 add { throw new NotSupportedException("BackColorChanged"); }
738 [EditorBrowsable (EditorBrowsableState.Never)]
739 public new event EventHandler BackgroundImageChanged {
740 add { throw new NotSupportedException("BackgroundImageChanged"); }
745 [EditorBrowsable (EditorBrowsableState.Never)]
746 public new event EventHandler BindingContextChanged {
747 add { throw new NotSupportedException("BackgroundImageChanged"); }
752 [EditorBrowsable (EditorBrowsableState.Never)]
753 public new event UICuesEventHandler ChangeUICues {
754 add { throw new NotSupportedException("ChangeUICues"); }
759 [EditorBrowsable (EditorBrowsableState.Never)]
760 public new event EventHandler Click {
761 add { throw new NotSupportedException("Click"); }
766 [EditorBrowsable (EditorBrowsableState.Never)]
767 public new event EventHandler ContextMenuChanged {
768 add { throw new NotSupportedException("ContextMenuChanged"); }
773 [EditorBrowsable (EditorBrowsableState.Never)]
774 public new event EventHandler CursorChanged {
775 add { throw new NotSupportedException("CursorChanged"); }
780 [EditorBrowsable (EditorBrowsableState.Never)]
781 public new event EventHandler DoubleClick {
782 add { throw new NotSupportedException("DoubleClick"); }
787 [EditorBrowsable (EditorBrowsableState.Never)]
788 public new event DragEventHandler DragDrop {
789 add { throw new NotSupportedException("DragDrop"); }
794 [EditorBrowsable (EditorBrowsableState.Never)]
795 public new event DragEventHandler DragEnter {
796 add { throw new NotSupportedException("DragEnter"); }
801 [EditorBrowsable (EditorBrowsableState.Never)]
802 public new event EventHandler DragLeave {
803 add { throw new NotSupportedException("DragLeave"); }
808 [EditorBrowsable (EditorBrowsableState.Never)]
809 public new event DragEventHandler DragOver {
810 add { throw new NotSupportedException("DragOver"); }
815 [EditorBrowsable (EditorBrowsableState.Never)]
816 public new event EventHandler EnabledChanged {
817 add { throw new NotSupportedException("EnabledChanged"); }
822 [EditorBrowsable (EditorBrowsableState.Never)]
823 public new event EventHandler FontChanged {
824 add { throw new NotSupportedException("FontChanged"); }
829 [EditorBrowsable (EditorBrowsableState.Never)]
830 public new event EventHandler ForeColorChanged {
831 add { throw new NotSupportedException("ForeColorChanged"); }
836 [EditorBrowsable (EditorBrowsableState.Never)]
837 public new event GiveFeedbackEventHandler GiveFeedback {
838 add { throw new NotSupportedException("GiveFeedback"); }
843 [EditorBrowsable (EditorBrowsableState.Never)]
844 public new event HelpEventHandler HelpRequested {
845 add { throw new NotSupportedException("HelpRequested"); }
850 [EditorBrowsable (EditorBrowsableState.Never)]
851 public new event EventHandler ImeModeChanged {
852 add { throw new NotSupportedException("ImeModeChanged"); }
857 [EditorBrowsable (EditorBrowsableState.Never)]
858 public new event KeyEventHandler KeyDown {
859 add { throw new NotSupportedException("KeyDown"); }
864 [EditorBrowsable (EditorBrowsableState.Never)]
865 public new event KeyPressEventHandler KeyPress {
866 add { throw new NotSupportedException("KeyPress"); }
871 [EditorBrowsable (EditorBrowsableState.Never)]
872 public new event KeyEventHandler KeyUp {
873 add { throw new NotSupportedException("KeyUp"); }
878 [EditorBrowsable (EditorBrowsableState.Never)]
879 public new event LayoutEventHandler Layout {
880 add { throw new NotSupportedException("Layout"); }
885 [EditorBrowsable (EditorBrowsableState.Never)]
886 public new event MouseEventHandler MouseDown {
887 add { throw new NotSupportedException("MouseDown"); }
892 [EditorBrowsable (EditorBrowsableState.Never)]
893 public new event EventHandler MouseEnter {
894 add { throw new NotSupportedException("MouseEnter"); }
899 [EditorBrowsable (EditorBrowsableState.Never)]
900 public new event EventHandler MouseHover {
901 add { throw new NotSupportedException("MouseHover"); }
906 [EditorBrowsable (EditorBrowsableState.Never)]
907 public new event EventHandler MouseLeave {
908 add { throw new NotSupportedException("MouseLeave"); }
913 [EditorBrowsable (EditorBrowsableState.Never)]
914 public new event MouseEventHandler MouseMove {
915 add { throw new NotSupportedException("MouseMove"); }
920 [EditorBrowsable (EditorBrowsableState.Never)]
921 public new event MouseEventHandler MouseUp {
922 add { throw new NotSupportedException("MouseUp"); }
927 [EditorBrowsable (EditorBrowsableState.Never)]
928 public new event MouseEventHandler MouseWheel {
929 add { throw new NotSupportedException("MouseWheel"); }
934 [EditorBrowsable (EditorBrowsableState.Never)]
935 public new event PaintEventHandler Paint {
936 add { throw new NotSupportedException("Paint"); }
941 [EditorBrowsable (EditorBrowsableState.Never)]
942 public new event QueryAccessibilityHelpEventHandler QueryAccessibilityHelp {
943 add { throw new NotSupportedException("QueryAccessibilityHelp"); }
948 [EditorBrowsable (EditorBrowsableState.Never)]
949 public new event QueryContinueDragEventHandler QueryContinueDrag {
950 add { throw new NotSupportedException("QueryContinueDrag"); }
955 [EditorBrowsable (EditorBrowsableState.Never)]
956 public new event EventHandler RightToLeftChanged {
957 add { throw new NotSupportedException("RightToLeftChanged"); }
962 [EditorBrowsable (EditorBrowsableState.Never)]
963 public new event EventHandler StyleChanged {
964 add { throw new NotSupportedException("StyleChanged"); }
969 [EditorBrowsable (EditorBrowsableState.Never)]
970 public new event EventHandler BackgroundImageLayoutChanged {
971 add { throw new NotSupportedException("BackgroundImageChanged"); }
976 [EditorBrowsable (EditorBrowsableState.Never)]
977 public new event EventHandler MouseClick {
978 add { throw new NotSupportedException("BackgroundImMouseClickageChanged"); }
983 [EditorBrowsable (EditorBrowsableState.Never)]
984 public new event EventHandler MouseDoubleClick {
985 add { throw new NotSupportedException("MouseDoubleClick"); }
990 [EditorBrowsable (EditorBrowsableState.Never)]
991 public new event EventHandler TextChanged {
992 add { throw new NotSupportedException("TextChanged"); }
998 protected delegate void AboutBoxDelegate ();
999 #endregion // Delegates
1002 [EditorBrowsable (EditorBrowsableState.Advanced)]
1003 AttributeCollection ICustomTypeDescriptor.GetAttributes ()
1005 throw new NotImplementedException("COM/ActiveX support is not implemented");
1008 [EditorBrowsable (EditorBrowsableState.Advanced)]
1009 string ICustomTypeDescriptor.GetClassName ()
1011 throw new NotImplementedException("COM/ActiveX support is not implemented");
1014 [EditorBrowsable (EditorBrowsableState.Advanced)]
1015 string ICustomTypeDescriptor.GetComponentName ()
1017 throw new NotImplementedException("COM/ActiveX support is not implemented");
1020 [EditorBrowsable (EditorBrowsableState.Advanced)]
1021 TypeConverter ICustomTypeDescriptor.GetConverter ()
1023 throw new NotImplementedException("COM/ActiveX support is not implemented");
1026 [EditorBrowsable (EditorBrowsableState.Advanced)]
1027 EventDescriptor ICustomTypeDescriptor.GetDefaultEvent ()
1029 throw new NotImplementedException("COM/ActiveX support is not implemented");
1032 [EditorBrowsable (EditorBrowsableState.Advanced)]
1033 PropertyDescriptor ICustomTypeDescriptor.GetDefaultProperty ()
1035 throw new NotImplementedException("COM/ActiveX support is not implemented");
1038 [EditorBrowsable (EditorBrowsableState.Advanced)]
1039 object ICustomTypeDescriptor.GetEditor (Type editorBaseType)
1041 throw new NotImplementedException("COM/ActiveX support is not implemented");
1044 [EditorBrowsable (EditorBrowsableState.Advanced)]
1045 EventDescriptorCollection ICustomTypeDescriptor.GetEvents ()
1047 throw new NotImplementedException("COM/ActiveX support is not implemented");
1050 [EditorBrowsable (EditorBrowsableState.Advanced)]
1051 EventDescriptorCollection ICustomTypeDescriptor.GetEvents (Attribute[] attributes)
1053 throw new NotImplementedException("COM/ActiveX support is not implemented");
1056 [EditorBrowsable (EditorBrowsableState.Advanced)]
1057 PropertyDescriptorCollection ICustomTypeDescriptor.GetProperties ()
1059 throw new NotImplementedException("COM/ActiveX support is not implemented");
1062 [EditorBrowsable (EditorBrowsableState.Advanced)]
1063 PropertyDescriptorCollection ICustomTypeDescriptor.GetProperties (Attribute[] attributes)
1065 throw new NotImplementedException("COM/ActiveX support is not implemented");
1068 [EditorBrowsable (EditorBrowsableState.Advanced)]
1069 object ICustomTypeDescriptor.GetPropertyOwner (PropertyDescriptor pd)
1071 throw new NotImplementedException("COM/ActiveX support is not implemented");
1073 #endregion // Interfaces