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 if(!base.IsHandleCreated)
564 protected virtual object CreateInstanceCore (Guid clsid)
566 throw new NotImplementedException("COM/ActiveX support is not implemented");
569 [EditorBrowsable (EditorBrowsableState.Advanced)]
570 protected virtual void CreateSink ()
572 throw new NotImplementedException("COM/ActiveX support is not implemented");
575 protected override void DestroyHandle ()
577 base.DestroyHandle();
580 [EditorBrowsable (EditorBrowsableState.Advanced)]
581 protected virtual void DetachSink ()
583 throw new NotImplementedException("COM/ActiveX support is not implemented");
586 protected override void Dispose (bool disposing)
588 base.Dispose(disposing);
591 [EditorBrowsable (EditorBrowsableState.Never)]
592 public new void DrawToBitmap (Bitmap bitmap, Rectangle targetBounds)
594 throw new NotImplementedException("COM/ActiveX support is not implemented");
597 [EditorBrowsable (EditorBrowsableState.Advanced)]
598 protected new virtual Rectangle GetScaledBounds (Rectangle bounds, SizeF factor, BoundsSpecified specified)
600 throw new NotImplementedException("COM/ActiveX support is not implemented");
603 protected override bool IsInputChar (char charCode)
605 throw new NotImplementedException("COM/ActiveX support is not implemented");
608 protected override void OnBackColorChanged (EventArgs e)
610 base.OnBackColorChanged(e);
613 protected override void OnFontChanged (EventArgs e)
615 base.OnFontChanged(e);
618 protected override void OnForeColorChanged (EventArgs e)
620 base.OnForeColorChanged(e);
623 protected override void OnHandleCreated (EventArgs e)
625 throw new NotImplementedException("COM/ActiveX support is not implemented");
628 protected virtual void OnInPlaceActive ()
630 throw new NotImplementedException("COM/ActiveX support is not implemented");
633 [EditorBrowsable (EditorBrowsableState.Advanced)]
634 protected override void OnLostFocus (EventArgs e)
636 throw new NotImplementedException("COM/ActiveX support is not implemented");
639 protected override bool ProcessDialogKey (Keys keyData)
641 return base.ProcessDialogKey(keyData);
644 protected override bool ProcessMnemonic (char charCode)
646 throw new NotImplementedException("COM/ActiveX support is not implemented");
649 [EditorBrowsable (EditorBrowsableState.Advanced)]
650 protected bool PropsValid ()
652 throw new NotImplementedException("COM/ActiveX support is not implemented");
655 [EditorBrowsable (EditorBrowsableState.Advanced)]
656 protected void RaiseOnMouseDown (short button, short shift, int x, int y)
658 throw new NotImplementedException("COM/ActiveX support is not implemented");
661 [EditorBrowsable (EditorBrowsableState.Advanced)]
662 protected void RaiseOnMouseDown (short button, short shift, float x, float y)
664 throw new NotImplementedException("COM/ActiveX support is not implemented");
667 [EditorBrowsable (EditorBrowsableState.Advanced)]
668 protected void RaiseOnMouseDown (object o1, object o2, object o3, object o4)
670 throw new NotImplementedException("COM/ActiveX support is not implemented");
673 [EditorBrowsable (EditorBrowsableState.Advanced)]
674 protected void RaiseOnMouseMove (short button, short shift, int x, int y)
676 throw new NotImplementedException("COM/ActiveX support is not implemented");
679 [EditorBrowsable (EditorBrowsableState.Advanced)]
680 protected void RaiseOnMouseMove (short button, short shift, float x, float y)
682 throw new NotImplementedException("COM/ActiveX support is not implemented");
685 [EditorBrowsable (EditorBrowsableState.Advanced)]
686 protected void RaiseOnMouseMove (object o1, object o2, object o3, object o4)
688 throw new NotImplementedException("COM/ActiveX support is not implemented");
691 [EditorBrowsable (EditorBrowsableState.Advanced)]
692 protected void RaiseOnMouseUp (short button, short shift, int x, int y)
694 throw new NotImplementedException("COM/ActiveX support is not implemented");
697 [EditorBrowsable (EditorBrowsableState.Advanced)]
698 protected void RaiseOnMouseUp (short button, short shift, float x, float y)
700 throw new NotImplementedException("COM/ActiveX support is not implemented");
703 [EditorBrowsable (EditorBrowsableState.Advanced)]
704 protected void RaiseOnMouseUp (object o1, object o2, object o3, object o4)
706 throw new NotImplementedException("COM/ActiveX support is not implemented");
709 protected void SetAboutBoxDelegate (AxHost.AboutBoxDelegate d)
711 this.aboutDelegate = d;
714 protected override void SetBoundsCore (int x, int y, int width, int height, BoundsSpecified specified)
716 base.SetBoundsCore(x, y, width, height, specified);
719 protected override void SetVisibleCore (bool value)
721 throw new NotImplementedException("COM/ActiveX support is not implemented");
724 protected override void WndProc (ref Message m)
726 this.DefWndProc(ref m);
728 #endregion // Protected Instance Methods
732 [EditorBrowsable (EditorBrowsableState.Never)]
733 public new event EventHandler BackColorChanged {
734 add { throw new NotSupportedException("BackColorChanged"); }
739 [EditorBrowsable (EditorBrowsableState.Never)]
740 public new event EventHandler BackgroundImageChanged {
741 add { throw new NotSupportedException("BackgroundImageChanged"); }
746 [EditorBrowsable (EditorBrowsableState.Never)]
747 public new event EventHandler BindingContextChanged {
748 add { throw new NotSupportedException("BackgroundImageChanged"); }
753 [EditorBrowsable (EditorBrowsableState.Never)]
754 public new event UICuesEventHandler ChangeUICues {
755 add { throw new NotSupportedException("ChangeUICues"); }
760 [EditorBrowsable (EditorBrowsableState.Never)]
761 public new event EventHandler Click {
762 add { throw new NotSupportedException("Click"); }
767 [EditorBrowsable (EditorBrowsableState.Never)]
768 public new event EventHandler ContextMenuChanged {
769 add { throw new NotSupportedException("ContextMenuChanged"); }
774 [EditorBrowsable (EditorBrowsableState.Never)]
775 public new event EventHandler CursorChanged {
776 add { throw new NotSupportedException("CursorChanged"); }
781 [EditorBrowsable (EditorBrowsableState.Never)]
782 public new event EventHandler DoubleClick {
783 add { throw new NotSupportedException("DoubleClick"); }
788 [EditorBrowsable (EditorBrowsableState.Never)]
789 public new event DragEventHandler DragDrop {
790 add { throw new NotSupportedException("DragDrop"); }
795 [EditorBrowsable (EditorBrowsableState.Never)]
796 public new event DragEventHandler DragEnter {
797 add { throw new NotSupportedException("DragEnter"); }
802 [EditorBrowsable (EditorBrowsableState.Never)]
803 public new event EventHandler DragLeave {
804 add { throw new NotSupportedException("DragLeave"); }
809 [EditorBrowsable (EditorBrowsableState.Never)]
810 public new event DragEventHandler DragOver {
811 add { throw new NotSupportedException("DragOver"); }
816 [EditorBrowsable (EditorBrowsableState.Never)]
817 public new event EventHandler EnabledChanged {
818 add { throw new NotSupportedException("EnabledChanged"); }
823 [EditorBrowsable (EditorBrowsableState.Never)]
824 public new event EventHandler FontChanged {
825 add { throw new NotSupportedException("FontChanged"); }
830 [EditorBrowsable (EditorBrowsableState.Never)]
831 public new event EventHandler ForeColorChanged {
832 add { throw new NotSupportedException("ForeColorChanged"); }
837 [EditorBrowsable (EditorBrowsableState.Never)]
838 public new event GiveFeedbackEventHandler GiveFeedback {
839 add { throw new NotSupportedException("GiveFeedback"); }
844 [EditorBrowsable (EditorBrowsableState.Never)]
845 public new event HelpEventHandler HelpRequested {
846 add { throw new NotSupportedException("HelpRequested"); }
851 [EditorBrowsable (EditorBrowsableState.Never)]
852 public new event EventHandler ImeModeChanged {
853 add { throw new NotSupportedException("ImeModeChanged"); }
858 [EditorBrowsable (EditorBrowsableState.Never)]
859 public new event KeyEventHandler KeyDown {
860 add { throw new NotSupportedException("KeyDown"); }
865 [EditorBrowsable (EditorBrowsableState.Never)]
866 public new event KeyPressEventHandler KeyPress {
867 add { throw new NotSupportedException("KeyPress"); }
872 [EditorBrowsable (EditorBrowsableState.Never)]
873 public new event KeyEventHandler KeyUp {
874 add { throw new NotSupportedException("KeyUp"); }
879 [EditorBrowsable (EditorBrowsableState.Never)]
880 public new event LayoutEventHandler Layout {
881 add { throw new NotSupportedException("Layout"); }
886 [EditorBrowsable (EditorBrowsableState.Never)]
887 public new event MouseEventHandler MouseDown {
888 add { throw new NotSupportedException("MouseDown"); }
893 [EditorBrowsable (EditorBrowsableState.Never)]
894 public new event EventHandler MouseEnter {
895 add { throw new NotSupportedException("MouseEnter"); }
900 [EditorBrowsable (EditorBrowsableState.Never)]
901 public new event EventHandler MouseHover {
902 add { throw new NotSupportedException("MouseHover"); }
907 [EditorBrowsable (EditorBrowsableState.Never)]
908 public new event EventHandler MouseLeave {
909 add { throw new NotSupportedException("MouseLeave"); }
914 [EditorBrowsable (EditorBrowsableState.Never)]
915 public new event MouseEventHandler MouseMove {
916 add { throw new NotSupportedException("MouseMove"); }
921 [EditorBrowsable (EditorBrowsableState.Never)]
922 public new event MouseEventHandler MouseUp {
923 add { throw new NotSupportedException("MouseUp"); }
928 [EditorBrowsable (EditorBrowsableState.Never)]
929 public new event MouseEventHandler MouseWheel {
930 add { throw new NotSupportedException("MouseWheel"); }
935 [EditorBrowsable (EditorBrowsableState.Never)]
936 public new event PaintEventHandler Paint {
937 add { throw new NotSupportedException("Paint"); }
942 [EditorBrowsable (EditorBrowsableState.Never)]
943 public new event QueryAccessibilityHelpEventHandler QueryAccessibilityHelp {
944 add { throw new NotSupportedException("QueryAccessibilityHelp"); }
949 [EditorBrowsable (EditorBrowsableState.Never)]
950 public new event QueryContinueDragEventHandler QueryContinueDrag {
951 add { throw new NotSupportedException("QueryContinueDrag"); }
956 [EditorBrowsable (EditorBrowsableState.Never)]
957 public new event EventHandler RightToLeftChanged {
958 add { throw new NotSupportedException("RightToLeftChanged"); }
963 [EditorBrowsable (EditorBrowsableState.Never)]
964 public new event EventHandler StyleChanged {
965 add { throw new NotSupportedException("StyleChanged"); }
970 [EditorBrowsable (EditorBrowsableState.Never)]
971 public new event EventHandler BackgroundImageLayoutChanged {
972 add { throw new NotSupportedException("BackgroundImageChanged"); }
977 [EditorBrowsable (EditorBrowsableState.Never)]
978 public new event EventHandler MouseClick {
979 add { throw new NotSupportedException("BackgroundImMouseClickageChanged"); }
984 [EditorBrowsable (EditorBrowsableState.Never)]
985 public new event EventHandler MouseDoubleClick {
986 add { throw new NotSupportedException("MouseDoubleClick"); }
991 [EditorBrowsable (EditorBrowsableState.Never)]
992 public new event EventHandler TextChanged {
993 add { throw new NotSupportedException("TextChanged"); }
999 protected delegate void AboutBoxDelegate ();
1000 #endregion // Delegates
1003 [EditorBrowsable (EditorBrowsableState.Advanced)]
1004 AttributeCollection ICustomTypeDescriptor.GetAttributes ()
1006 throw new NotImplementedException("COM/ActiveX support is not implemented");
1009 [EditorBrowsable (EditorBrowsableState.Advanced)]
1010 string ICustomTypeDescriptor.GetClassName ()
1012 throw new NotImplementedException("COM/ActiveX support is not implemented");
1015 [EditorBrowsable (EditorBrowsableState.Advanced)]
1016 string ICustomTypeDescriptor.GetComponentName ()
1018 throw new NotImplementedException("COM/ActiveX support is not implemented");
1021 [EditorBrowsable (EditorBrowsableState.Advanced)]
1022 TypeConverter ICustomTypeDescriptor.GetConverter ()
1024 throw new NotImplementedException("COM/ActiveX support is not implemented");
1027 [EditorBrowsable (EditorBrowsableState.Advanced)]
1028 EventDescriptor ICustomTypeDescriptor.GetDefaultEvent ()
1030 throw new NotImplementedException("COM/ActiveX support is not implemented");
1033 [EditorBrowsable (EditorBrowsableState.Advanced)]
1034 PropertyDescriptor ICustomTypeDescriptor.GetDefaultProperty ()
1036 throw new NotImplementedException("COM/ActiveX support is not implemented");
1039 [EditorBrowsable (EditorBrowsableState.Advanced)]
1040 object ICustomTypeDescriptor.GetEditor (Type editorBaseType)
1042 throw new NotImplementedException("COM/ActiveX support is not implemented");
1045 [EditorBrowsable (EditorBrowsableState.Advanced)]
1046 EventDescriptorCollection ICustomTypeDescriptor.GetEvents ()
1048 throw new NotImplementedException("COM/ActiveX support is not implemented");
1051 [EditorBrowsable (EditorBrowsableState.Advanced)]
1052 EventDescriptorCollection ICustomTypeDescriptor.GetEvents (Attribute[] attributes)
1054 throw new NotImplementedException("COM/ActiveX support is not implemented");
1057 [EditorBrowsable (EditorBrowsableState.Advanced)]
1058 PropertyDescriptorCollection ICustomTypeDescriptor.GetProperties ()
1060 throw new NotImplementedException("COM/ActiveX support is not implemented");
1063 [EditorBrowsable (EditorBrowsableState.Advanced)]
1064 PropertyDescriptorCollection ICustomTypeDescriptor.GetProperties (Attribute[] attributes)
1066 throw new NotImplementedException("COM/ActiveX support is not implemented");
1069 [EditorBrowsable (EditorBrowsableState.Advanced)]
1070 object ICustomTypeDescriptor.GetPropertyOwner (PropertyDescriptor pd)
1072 throw new NotImplementedException("COM/ActiveX support is not implemented");
1074 #endregion // Interfaces