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;
191 #region Protected Constructors
194 protected AxHost (string clsid) : this(clsid, 0)
200 protected AxHost (string clsid, int flags)
202 //this.clsid = new Guid(clsid);
203 //this.flags = flags;
205 #endregion // Public Instance Properties
207 #region Public Instance Properties
209 [EditorBrowsable (EditorBrowsableState.Never)]
210 public override Color BackColor {
212 return base.BackColor;
215 base.BackColor = value;
220 [EditorBrowsable (EditorBrowsableState.Never)]
221 [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
222 public override Image BackgroundImage {
224 return base.BackgroundImage;
228 base.BackgroundImage = value;
233 [EditorBrowsable (EditorBrowsableState.Never)]
234 [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
235 public override ImageLayout BackgroundImageLayout {
237 return base.BackgroundImageLayout;
241 base.BackgroundImageLayout = value;
246 [EditorBrowsable (EditorBrowsableState.Advanced)]
247 [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
248 public ContainerControl ContainingControl {
250 throw new NotImplementedException("COM/ActiveX support is not implemented");
254 throw new NotImplementedException("COM/ActiveX support is not implemented");
259 [EditorBrowsable (EditorBrowsableState.Never)]
260 public override ContextMenu ContextMenu {
262 return base.ContextMenu;
266 base.ContextMenu = value;
271 [EditorBrowsable (EditorBrowsableState.Never)]
272 public override Cursor Cursor {
283 [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
284 [EditorBrowsable (EditorBrowsableState.Advanced)]
285 public bool EditMode {
287 throw new NotImplementedException("COM/ActiveX support is not implemented");
292 [EditorBrowsable (EditorBrowsableState.Never)]
293 public new virtual bool Enabled {
299 base.Enabled = value;
304 [EditorBrowsable (EditorBrowsableState.Never)]
305 public override Font Font {
316 [EditorBrowsable (EditorBrowsableState.Never)]
317 public override Color ForeColor {
319 return base.ForeColor;
323 base.ForeColor = value;
328 [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
329 [EditorBrowsable (EditorBrowsableState.Advanced)]
330 public bool HasAboutBox {
332 return aboutDelegate != null;
337 [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
338 [EditorBrowsable (EditorBrowsableState.Never)]
339 public new ImeMode ImeMode {
344 base.ImeMode = value;
349 [DefaultValue (null)]
350 [EditorBrowsable (EditorBrowsableState.Advanced)]
351 [RefreshProperties (RefreshProperties.All)]
352 public AxHost.State OcxState {
354 throw new NotImplementedException("COM/ActiveX support is not implemented");
358 throw new NotImplementedException("COM/ActiveX support is not implemented");
363 [EditorBrowsable (EditorBrowsableState.Never)]
365 public new virtual bool RightToLeft {
367 return base.RightToLeft == System.Windows.Forms.RightToLeft.Yes;
371 base.RightToLeft = (value ? System.Windows.Forms.RightToLeft.Yes :
372 System.Windows.Forms.RightToLeft.No);
376 public override ISite Site {
378 throw new NotImplementedException("COM/ActiveX support is not implemented");
383 [EditorBrowsable (EditorBrowsableState.Never)]
384 public override string Text {
385 get { return base.Text; }
386 set { base.Text = value; }
388 #endregion // Protected Constructors
390 #region Protected Instance Properties
391 protected override CreateParams CreateParams {
392 get { return base.CreateParams; }
395 protected override Size DefaultSize {
397 return new Size (75, 23);
400 #endregion // Protected Instance Properties
402 #region Protected Static Methods
403 [CLSCompliant(false)]
404 [EditorBrowsable (EditorBrowsableState.Advanced)]
405 protected static Color GetColorFromOleColor (uint color)
407 throw new NotImplementedException("COM/ActiveX support is not implemented");
410 [EditorBrowsable (EditorBrowsableState.Advanced)]
411 protected static Font GetFontFromIFont (object font)
413 throw new NotImplementedException("COM/ActiveX support is not implemented");
416 [EditorBrowsable (EditorBrowsableState.Advanced)]
417 protected static Font GetFontFromIFontDisp (object font)
419 throw new NotImplementedException("COM/ActiveX support is not implemented");
422 [EditorBrowsable (EditorBrowsableState.Advanced)]
423 protected static object GetIFontDispFromFont (Font font)
425 throw new NotImplementedException("COM/ActiveX support is not implemented");
428 [EditorBrowsable (EditorBrowsableState.Advanced)]
429 protected static object GetIFontFromFont (Font font)
431 throw new NotImplementedException("COM/ActiveX support is not implemented");
434 [EditorBrowsable (EditorBrowsableState.Advanced)]
435 protected static object GetIPictureDispFromPicture (Image image)
437 throw new NotImplementedException("COM/ActiveX support is not implemented");
440 [EditorBrowsable (EditorBrowsableState.Advanced)]
441 protected static object GetIPictureFromCursor (Cursor cursor)
443 throw new NotImplementedException("COM/ActiveX support is not implemented");
446 [EditorBrowsable (EditorBrowsableState.Advanced)]
447 protected static object GetIPictureFromPicture (Image image)
449 throw new NotImplementedException("COM/ActiveX support is not implemented");
452 [EditorBrowsable (EditorBrowsableState.Advanced)]
453 protected static double GetOADateFromTime (DateTime time)
455 throw new NotImplementedException("COM/ActiveX support is not implemented");
458 [CLSCompliant(false)]
459 [EditorBrowsable (EditorBrowsableState.Advanced)]
460 protected static uint GetOleColorFromColor (Color color)
462 throw new NotImplementedException("COM/ActiveX support is not implemented");
465 [EditorBrowsable (EditorBrowsableState.Advanced)]
466 protected static Image GetPictureFromIPicture (object picture)
468 throw new NotImplementedException("COM/ActiveX support is not implemented");
471 [EditorBrowsable (EditorBrowsableState.Advanced)]
472 protected static Image GetPictureFromIPictureDisp (object picture)
474 throw new NotImplementedException("COM/ActiveX support is not implemented");
477 [EditorBrowsable (EditorBrowsableState.Advanced)]
478 protected static DateTime GetTimeFromOADate (double date)
480 throw new NotImplementedException("COM/ActiveX support is not implemented");
482 #endregion // Protected Static Methods
484 #region Public Instance Methods
485 [EditorBrowsable (EditorBrowsableState.Advanced)]
487 public void BeginInit ()
491 public void DoVerb (int verb)
493 throw new NotImplementedException("COM/ActiveX support is not implemented");
496 [EditorBrowsable (EditorBrowsableState.Advanced)]
498 public void EndInit ()
502 [EditorBrowsable (EditorBrowsableState.Advanced)]
503 public object GetOcx ()
505 throw new NotImplementedException("COM/ActiveX support is not implemented");
508 public bool HasPropertyPages ()
510 throw new NotImplementedException("COM/ActiveX support is not implemented");
513 [EditorBrowsable (EditorBrowsableState.Advanced)]
514 public void InvokeEditMode ()
516 throw new NotImplementedException("COM/ActiveX support is not implemented");
519 [EditorBrowsable (EditorBrowsableState.Advanced)]
520 public void MakeDirty ()
522 throw new NotImplementedException("COM/ActiveX support is not implemented");
525 public override bool PreProcessMessage (ref Message msg)
527 throw new NotImplementedException("COM/ActiveX support is not implemented");
530 public void ShowAboutBox ()
532 if (aboutDelegate != null)
533 this.aboutDelegate();
536 public void ShowPropertyPages ()
538 throw new NotImplementedException("COM/ActiveX support is not implemented");
541 public void ShowPropertyPages (Control control)
543 throw new NotImplementedException("COM/ActiveX support is not implemented");
545 #endregion // Public Instance Methods
547 #region Protected Instance Methods
548 protected virtual void AttachInterfaces ()
550 throw new NotImplementedException("COM/ActiveX support is not implemented");
553 protected override void CreateHandle ()
555 throw new NotImplementedException("COM/ActiveX support is not implemented");
558 protected virtual object CreateInstanceCore (Guid clsid)
560 throw new NotImplementedException("COM/ActiveX support is not implemented");
563 [EditorBrowsable (EditorBrowsableState.Advanced)]
564 protected virtual void CreateSink ()
566 throw new NotImplementedException("COM/ActiveX support is not implemented");
569 protected override void DestroyHandle ()
571 throw new NotImplementedException("COM/ActiveX support is not implemented");
574 [EditorBrowsable (EditorBrowsableState.Advanced)]
575 protected virtual void DetachSink ()
577 throw new NotImplementedException("COM/ActiveX support is not implemented");
580 protected override void Dispose (bool disposing)
582 throw new NotImplementedException("COM/ActiveX support is not implemented");
585 [EditorBrowsable (EditorBrowsableState.Never)]
586 public new void DrawToBitmap (Bitmap bitmap, Rectangle targetBounds)
588 throw new NotImplementedException("COM/ActiveX support is not implemented");
591 [EditorBrowsable (EditorBrowsableState.Advanced)]
592 protected new virtual Rectangle GetScaledBounds (Rectangle bounds, SizeF factor, BoundsSpecified specified)
594 throw new NotImplementedException("COM/ActiveX support is not implemented");
597 protected override bool IsInputChar (char charCode)
599 throw new NotImplementedException("COM/ActiveX support is not implemented");
602 protected override void OnBackColorChanged (EventArgs e)
604 base.OnBackColorChanged(e);
607 protected override void OnFontChanged (EventArgs e)
609 base.OnFontChanged(e);
612 protected override void OnForeColorChanged (EventArgs e)
614 base.OnForeColorChanged(e);
617 protected override void OnHandleCreated (EventArgs e)
619 throw new NotImplementedException("COM/ActiveX support is not implemented");
622 protected virtual void OnInPlaceActive ()
624 throw new NotImplementedException("COM/ActiveX support is not implemented");
627 [EditorBrowsable (EditorBrowsableState.Advanced)]
628 protected override void OnLostFocus (EventArgs e)
630 throw new NotImplementedException("COM/ActiveX support is not implemented");
633 protected override bool ProcessDialogKey (Keys keyData)
635 return base.ProcessDialogKey(keyData);
638 protected override bool ProcessMnemonic (char charCode)
640 throw new NotImplementedException("COM/ActiveX support is not implemented");
643 [EditorBrowsable (EditorBrowsableState.Advanced)]
644 protected bool PropsValid ()
646 throw new NotImplementedException("COM/ActiveX support is not implemented");
649 [EditorBrowsable (EditorBrowsableState.Advanced)]
650 protected void RaiseOnMouseDown (short button, short shift, int x, int y)
652 throw new NotImplementedException("COM/ActiveX support is not implemented");
655 [EditorBrowsable (EditorBrowsableState.Advanced)]
656 protected void RaiseOnMouseDown (short button, short shift, float x, float y)
658 throw new NotImplementedException("COM/ActiveX support is not implemented");
661 [EditorBrowsable (EditorBrowsableState.Advanced)]
662 protected void RaiseOnMouseDown (object o1, object o2, object o3, object o4)
664 throw new NotImplementedException("COM/ActiveX support is not implemented");
667 [EditorBrowsable (EditorBrowsableState.Advanced)]
668 protected void RaiseOnMouseMove (short button, short shift, int x, int y)
670 throw new NotImplementedException("COM/ActiveX support is not implemented");
673 [EditorBrowsable (EditorBrowsableState.Advanced)]
674 protected void RaiseOnMouseMove (short button, short shift, float x, float y)
676 throw new NotImplementedException("COM/ActiveX support is not implemented");
679 [EditorBrowsable (EditorBrowsableState.Advanced)]
680 protected void RaiseOnMouseMove (object o1, object o2, object o3, object o4)
682 throw new NotImplementedException("COM/ActiveX support is not implemented");
685 [EditorBrowsable (EditorBrowsableState.Advanced)]
686 protected void RaiseOnMouseUp (short button, short shift, int x, int y)
688 throw new NotImplementedException("COM/ActiveX support is not implemented");
691 [EditorBrowsable (EditorBrowsableState.Advanced)]
692 protected void RaiseOnMouseUp (short button, short shift, float x, float y)
694 throw new NotImplementedException("COM/ActiveX support is not implemented");
697 [EditorBrowsable (EditorBrowsableState.Advanced)]
698 protected void RaiseOnMouseUp (object o1, object o2, object o3, object o4)
700 throw new NotImplementedException("COM/ActiveX support is not implemented");
703 protected void SetAboutBoxDelegate (AxHost.AboutBoxDelegate d)
705 this.aboutDelegate = d;
708 protected override void SetBoundsCore (int x, int y, int width, int height, BoundsSpecified specified)
710 base.SetBoundsCore(x, y, width, height, specified);
713 protected override void SetVisibleCore (bool value)
715 throw new NotImplementedException("COM/ActiveX support is not implemented");
718 protected override void WndProc (ref Message m)
720 throw new NotImplementedException("COM/ActiveX support is not implemented");
722 #endregion // Protected Instance Methods
726 [EditorBrowsable (EditorBrowsableState.Never)]
727 public new event EventHandler BackColorChanged {
728 add { throw new NotSupportedException("BackColorChanged"); }
733 [EditorBrowsable (EditorBrowsableState.Never)]
734 public new event EventHandler BackgroundImageChanged {
735 add { throw new NotSupportedException("BackgroundImageChanged"); }
740 [EditorBrowsable (EditorBrowsableState.Never)]
741 public new event EventHandler BindingContextChanged {
742 add { throw new NotSupportedException("BackgroundImageChanged"); }
747 [EditorBrowsable (EditorBrowsableState.Never)]
748 public new event UICuesEventHandler ChangeUICues {
749 add { throw new NotSupportedException("ChangeUICues"); }
754 [EditorBrowsable (EditorBrowsableState.Never)]
755 public new event EventHandler Click {
756 add { throw new NotSupportedException("Click"); }
761 [EditorBrowsable (EditorBrowsableState.Never)]
762 public new event EventHandler ContextMenuChanged {
763 add { throw new NotSupportedException("ContextMenuChanged"); }
768 [EditorBrowsable (EditorBrowsableState.Never)]
769 public new event EventHandler CursorChanged {
770 add { throw new NotSupportedException("CursorChanged"); }
775 [EditorBrowsable (EditorBrowsableState.Never)]
776 public new event EventHandler DoubleClick {
777 add { throw new NotSupportedException("DoubleClick"); }
782 [EditorBrowsable (EditorBrowsableState.Never)]
783 public new event DragEventHandler DragDrop {
784 add { throw new NotSupportedException("DragDrop"); }
789 [EditorBrowsable (EditorBrowsableState.Never)]
790 public new event DragEventHandler DragEnter {
791 add { throw new NotSupportedException("DragEnter"); }
796 [EditorBrowsable (EditorBrowsableState.Never)]
797 public new event EventHandler DragLeave {
798 add { throw new NotSupportedException("DragLeave"); }
803 [EditorBrowsable (EditorBrowsableState.Never)]
804 public new event DragEventHandler DragOver {
805 add { throw new NotSupportedException("DragOver"); }
810 [EditorBrowsable (EditorBrowsableState.Never)]
811 public new event EventHandler EnabledChanged {
812 add { throw new NotSupportedException("EnabledChanged"); }
817 [EditorBrowsable (EditorBrowsableState.Never)]
818 public new event EventHandler FontChanged {
819 add { throw new NotSupportedException("FontChanged"); }
824 [EditorBrowsable (EditorBrowsableState.Never)]
825 public new event EventHandler ForeColorChanged {
826 add { throw new NotSupportedException("ForeColorChanged"); }
831 [EditorBrowsable (EditorBrowsableState.Never)]
832 public new event GiveFeedbackEventHandler GiveFeedback {
833 add { throw new NotSupportedException("GiveFeedback"); }
838 [EditorBrowsable (EditorBrowsableState.Never)]
839 public new event HelpEventHandler HelpRequested {
840 add { throw new NotSupportedException("HelpRequested"); }
845 [EditorBrowsable (EditorBrowsableState.Never)]
846 public new event EventHandler ImeModeChanged {
847 add { throw new NotSupportedException("ImeModeChanged"); }
852 [EditorBrowsable (EditorBrowsableState.Never)]
853 public new event KeyEventHandler KeyDown {
854 add { throw new NotSupportedException("KeyDown"); }
859 [EditorBrowsable (EditorBrowsableState.Never)]
860 public new event KeyPressEventHandler KeyPress {
861 add { throw new NotSupportedException("KeyPress"); }
866 [EditorBrowsable (EditorBrowsableState.Never)]
867 public new event KeyEventHandler KeyUp {
868 add { throw new NotSupportedException("KeyUp"); }
873 [EditorBrowsable (EditorBrowsableState.Never)]
874 public new event LayoutEventHandler Layout {
875 add { throw new NotSupportedException("Layout"); }
880 [EditorBrowsable (EditorBrowsableState.Never)]
881 public new event MouseEventHandler MouseDown {
882 add { throw new NotSupportedException("MouseDown"); }
887 [EditorBrowsable (EditorBrowsableState.Never)]
888 public new event EventHandler MouseEnter {
889 add { throw new NotSupportedException("MouseEnter"); }
894 [EditorBrowsable (EditorBrowsableState.Never)]
895 public new event EventHandler MouseHover {
896 add { throw new NotSupportedException("MouseHover"); }
901 [EditorBrowsable (EditorBrowsableState.Never)]
902 public new event EventHandler MouseLeave {
903 add { throw new NotSupportedException("MouseLeave"); }
908 [EditorBrowsable (EditorBrowsableState.Never)]
909 public new event MouseEventHandler MouseMove {
910 add { throw new NotSupportedException("MouseMove"); }
915 [EditorBrowsable (EditorBrowsableState.Never)]
916 public new event MouseEventHandler MouseUp {
917 add { throw new NotSupportedException("MouseUp"); }
922 [EditorBrowsable (EditorBrowsableState.Never)]
923 public new event MouseEventHandler MouseWheel {
924 add { throw new NotSupportedException("MouseWheel"); }
929 [EditorBrowsable (EditorBrowsableState.Never)]
930 public new event PaintEventHandler Paint {
931 add { throw new NotSupportedException("Paint"); }
936 [EditorBrowsable (EditorBrowsableState.Never)]
937 public new event QueryAccessibilityHelpEventHandler QueryAccessibilityHelp {
938 add { throw new NotSupportedException("QueryAccessibilityHelp"); }
943 [EditorBrowsable (EditorBrowsableState.Never)]
944 public new event QueryContinueDragEventHandler QueryContinueDrag {
945 add { throw new NotSupportedException("QueryContinueDrag"); }
950 [EditorBrowsable (EditorBrowsableState.Never)]
951 public new event EventHandler RightToLeftChanged {
952 add { throw new NotSupportedException("RightToLeftChanged"); }
957 [EditorBrowsable (EditorBrowsableState.Never)]
958 public new event EventHandler StyleChanged {
959 add { throw new NotSupportedException("StyleChanged"); }
964 [EditorBrowsable (EditorBrowsableState.Never)]
965 public new event EventHandler BackgroundImageLayoutChanged {
966 add { throw new NotSupportedException("BackgroundImageChanged"); }
971 [EditorBrowsable (EditorBrowsableState.Never)]
972 public new event EventHandler MouseClick {
973 add { throw new NotSupportedException("BackgroundImMouseClickageChanged"); }
978 [EditorBrowsable (EditorBrowsableState.Never)]
979 public new event EventHandler MouseDoubleClick {
980 add { throw new NotSupportedException("MouseDoubleClick"); }
985 [EditorBrowsable (EditorBrowsableState.Never)]
986 public new event EventHandler TextChanged {
987 add { throw new NotSupportedException("TextChanged"); }
993 protected delegate void AboutBoxDelegate ();
994 #endregion // Delegates
997 [EditorBrowsable (EditorBrowsableState.Advanced)]
998 AttributeCollection ICustomTypeDescriptor.GetAttributes ()
1000 throw new NotImplementedException("COM/ActiveX support is not implemented");
1003 [EditorBrowsable (EditorBrowsableState.Advanced)]
1004 string ICustomTypeDescriptor.GetClassName ()
1006 throw new NotImplementedException("COM/ActiveX support is not implemented");
1009 [EditorBrowsable (EditorBrowsableState.Advanced)]
1010 string ICustomTypeDescriptor.GetComponentName ()
1012 throw new NotImplementedException("COM/ActiveX support is not implemented");
1015 [EditorBrowsable (EditorBrowsableState.Advanced)]
1016 TypeConverter ICustomTypeDescriptor.GetConverter ()
1018 throw new NotImplementedException("COM/ActiveX support is not implemented");
1021 [EditorBrowsable (EditorBrowsableState.Advanced)]
1022 EventDescriptor ICustomTypeDescriptor.GetDefaultEvent ()
1024 throw new NotImplementedException("COM/ActiveX support is not implemented");
1027 [EditorBrowsable (EditorBrowsableState.Advanced)]
1028 PropertyDescriptor ICustomTypeDescriptor.GetDefaultProperty ()
1030 throw new NotImplementedException("COM/ActiveX support is not implemented");
1033 [EditorBrowsable (EditorBrowsableState.Advanced)]
1034 object ICustomTypeDescriptor.GetEditor (Type editorBaseType)
1036 throw new NotImplementedException("COM/ActiveX support is not implemented");
1039 [EditorBrowsable (EditorBrowsableState.Advanced)]
1040 EventDescriptorCollection ICustomTypeDescriptor.GetEvents ()
1042 throw new NotImplementedException("COM/ActiveX support is not implemented");
1045 [EditorBrowsable (EditorBrowsableState.Advanced)]
1046 EventDescriptorCollection ICustomTypeDescriptor.GetEvents (Attribute[] attributes)
1048 throw new NotImplementedException("COM/ActiveX support is not implemented");
1051 [EditorBrowsable (EditorBrowsableState.Advanced)]
1052 PropertyDescriptorCollection ICustomTypeDescriptor.GetProperties ()
1054 throw new NotImplementedException("COM/ActiveX support is not implemented");
1057 [EditorBrowsable (EditorBrowsableState.Advanced)]
1058 PropertyDescriptorCollection ICustomTypeDescriptor.GetProperties (Attribute[] attributes)
1060 throw new NotImplementedException("COM/ActiveX support is not implemented");
1063 [EditorBrowsable (EditorBrowsableState.Advanced)]
1064 object ICustomTypeDescriptor.GetPropertyOwner (PropertyDescriptor pd)
1066 throw new NotImplementedException("COM/ActiveX support is not implemented");
1068 #endregion // Interfaces