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;
190 #region Protected Constructors
193 protected AxHost (string clsid) : this(clsid, 0)
199 protected AxHost (string clsid, int flags)
201 //this.clsid = new Guid(clsid);
202 //this.flags = flags;
204 #endregion // Public Instance Properties
206 #region Public Instance Properties
208 [EditorBrowsable (EditorBrowsableState.Never)]
209 public override Color BackColor {
211 return base.BackColor;
214 base.BackColor = value;
219 [EditorBrowsable (EditorBrowsableState.Never)]
220 [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
221 public override Image BackgroundImage {
223 return base.BackgroundImage;
227 base.BackgroundImage = value;
232 [EditorBrowsable (EditorBrowsableState.Never)]
233 [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
234 public override ImageLayout BackgroundImageLayout {
236 return base.BackgroundImageLayout;
240 base.BackgroundImageLayout = value;
245 [EditorBrowsable (EditorBrowsableState.Advanced)]
246 [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
247 public ContainerControl ContainingControl {
249 throw new NotImplementedException("COM/ActiveX support is not implemented");
253 throw new NotImplementedException("COM/ActiveX support is not implemented");
258 [EditorBrowsable (EditorBrowsableState.Never)]
259 public override ContextMenu ContextMenu {
261 return base.ContextMenu;
265 base.ContextMenu = value;
270 [EditorBrowsable (EditorBrowsableState.Never)]
271 public override Cursor Cursor {
282 [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
283 [EditorBrowsable (EditorBrowsableState.Advanced)]
284 public bool EditMode {
286 throw new NotImplementedException("COM/ActiveX support is not implemented");
291 [EditorBrowsable (EditorBrowsableState.Never)]
292 public new virtual bool Enabled {
298 base.Enabled = value;
303 [EditorBrowsable (EditorBrowsableState.Never)]
304 public override Font Font {
315 [EditorBrowsable (EditorBrowsableState.Never)]
316 public override Color ForeColor {
318 return base.ForeColor;
322 base.ForeColor = value;
327 [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
328 [EditorBrowsable (EditorBrowsableState.Advanced)]
329 public bool HasAboutBox {
331 throw new NotImplementedException("COM/ActiveX support is not implemented");
336 [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
337 [EditorBrowsable (EditorBrowsableState.Never)]
338 public new ImeMode ImeMode {
343 base.ImeMode = value;
348 [DefaultValue (null)]
349 [EditorBrowsable (EditorBrowsableState.Advanced)]
350 [RefreshProperties (RefreshProperties.All)]
351 public AxHost.State OcxState {
353 throw new NotImplementedException("COM/ActiveX support is not implemented");
357 throw new NotImplementedException("COM/ActiveX support is not implemented");
362 [EditorBrowsable (EditorBrowsableState.Never)]
364 public new virtual bool RightToLeft {
366 return base.RightToLeft == System.Windows.Forms.RightToLeft.Yes;
370 base.RightToLeft = (value ? System.Windows.Forms.RightToLeft.Yes :
371 System.Windows.Forms.RightToLeft.No);
375 public override ISite Site {
377 throw new NotImplementedException("COM/ActiveX support is not implemented");
382 [EditorBrowsable (EditorBrowsableState.Never)]
383 public override string Text {
384 get { return base.Text; }
385 set { base.Text = value; }
387 #endregion // Protected Constructors
389 #region Protected Instance Properties
390 protected override CreateParams CreateParams {
391 get { return base.CreateParams; }
394 protected override Size DefaultSize {
396 return new Size (75, 23);
399 #endregion // Protected Instance Properties
401 #region Protected Static Methods
402 [CLSCompliant(false)]
403 [EditorBrowsable (EditorBrowsableState.Advanced)]
404 protected static Color GetColorFromOleColor (uint color)
406 throw new NotImplementedException("COM/ActiveX support is not implemented");
409 [EditorBrowsable (EditorBrowsableState.Advanced)]
410 protected static Font GetFontFromIFont (object font)
412 throw new NotImplementedException("COM/ActiveX support is not implemented");
415 [EditorBrowsable (EditorBrowsableState.Advanced)]
416 protected static Font GetFontFromIFontDisp (object font)
418 throw new NotImplementedException("COM/ActiveX support is not implemented");
421 [EditorBrowsable (EditorBrowsableState.Advanced)]
422 protected static object GetIFontDispFromFont (Font font)
424 throw new NotImplementedException("COM/ActiveX support is not implemented");
427 [EditorBrowsable (EditorBrowsableState.Advanced)]
428 protected static object GetIFontFromFont (Font font)
430 throw new NotImplementedException("COM/ActiveX support is not implemented");
433 [EditorBrowsable (EditorBrowsableState.Advanced)]
434 protected static object GetIPictureDispFromPicture (Image image)
436 throw new NotImplementedException("COM/ActiveX support is not implemented");
439 [EditorBrowsable (EditorBrowsableState.Advanced)]
440 protected static object GetIPictureFromCursor (Cursor cursor)
442 throw new NotImplementedException("COM/ActiveX support is not implemented");
445 [EditorBrowsable (EditorBrowsableState.Advanced)]
446 protected static object GetIPictureFromPicture (Image image)
448 throw new NotImplementedException("COM/ActiveX support is not implemented");
451 [EditorBrowsable (EditorBrowsableState.Advanced)]
452 protected static double GetOADateFromTime (DateTime time)
454 throw new NotImplementedException("COM/ActiveX support is not implemented");
457 [CLSCompliant(false)]
458 [EditorBrowsable (EditorBrowsableState.Advanced)]
459 protected static uint GetOleColorFromColor (Color color)
461 throw new NotImplementedException("COM/ActiveX support is not implemented");
464 [EditorBrowsable (EditorBrowsableState.Advanced)]
465 protected static Image GetPictureFromIPicture (object picture)
467 throw new NotImplementedException("COM/ActiveX support is not implemented");
470 [EditorBrowsable (EditorBrowsableState.Advanced)]
471 protected static Image GetPictureFromIPictureDisp (object picture)
473 throw new NotImplementedException("COM/ActiveX support is not implemented");
476 [EditorBrowsable (EditorBrowsableState.Advanced)]
477 protected static DateTime GetTimeFromOADate (double date)
479 throw new NotImplementedException("COM/ActiveX support is not implemented");
481 #endregion // Protected Static Methods
483 #region Public Instance Methods
484 [EditorBrowsable (EditorBrowsableState.Advanced)]
485 public void BeginInit ()
487 throw new NotImplementedException("COM/ActiveX support is not implemented");
490 public void DoVerb (int verb)
492 throw new NotImplementedException("COM/ActiveX support is not implemented");
495 [EditorBrowsable (EditorBrowsableState.Advanced)]
496 public void EndInit ()
498 throw new NotImplementedException("COM/ActiveX support is not implemented");
501 [EditorBrowsable (EditorBrowsableState.Advanced)]
502 public object GetOcx ()
504 throw new NotImplementedException("COM/ActiveX support is not implemented");
507 public bool HasPropertyPages ()
509 throw new NotImplementedException("COM/ActiveX support is not implemented");
512 [EditorBrowsable (EditorBrowsableState.Advanced)]
513 public void InvokeEditMode ()
515 throw new NotImplementedException("COM/ActiveX support is not implemented");
518 [EditorBrowsable (EditorBrowsableState.Advanced)]
519 public void MakeDirty ()
521 throw new NotImplementedException("COM/ActiveX support is not implemented");
524 public override bool PreProcessMessage (ref Message msg)
526 throw new NotImplementedException("COM/ActiveX support is not implemented");
529 public void ShowAboutBox ()
531 throw new NotImplementedException("COM/ActiveX support is not implemented");
534 public void ShowPropertyPages ()
536 throw new NotImplementedException("COM/ActiveX support is not implemented");
539 public void ShowPropertyPages (Control control)
541 throw new NotImplementedException("COM/ActiveX support is not implemented");
543 #endregion // Public Instance Methods
545 #region Protected Instance Methods
546 protected virtual void AttachInterfaces ()
548 throw new NotImplementedException("COM/ActiveX support is not implemented");
551 protected override void CreateHandle ()
553 throw new NotImplementedException("COM/ActiveX support is not implemented");
556 protected virtual object CreateInstanceCore (Guid clsid)
558 throw new NotImplementedException("COM/ActiveX support is not implemented");
561 [EditorBrowsable (EditorBrowsableState.Advanced)]
562 protected virtual void CreateSink ()
564 throw new NotImplementedException("COM/ActiveX support is not implemented");
567 protected override void DestroyHandle ()
569 throw new NotImplementedException("COM/ActiveX support is not implemented");
572 [EditorBrowsable (EditorBrowsableState.Advanced)]
573 protected virtual void DetachSink ()
575 throw new NotImplementedException("COM/ActiveX support is not implemented");
578 protected override void Dispose (bool disposing)
580 throw new NotImplementedException("COM/ActiveX support is not implemented");
583 [EditorBrowsable (EditorBrowsableState.Never)]
584 public new void DrawToBitmap (Bitmap bitmap, Rectangle targetBounds)
586 throw new NotImplementedException("COM/ActiveX support is not implemented");
589 [EditorBrowsable (EditorBrowsableState.Advanced)]
590 protected new virtual Rectangle GetScaledBounds (Rectangle bounds, SizeF factor, BoundsSpecified specified)
592 throw new NotImplementedException("COM/ActiveX support is not implemented");
595 protected override bool IsInputChar (char charCode)
597 throw new NotImplementedException("COM/ActiveX support is not implemented");
600 protected override void OnBackColorChanged (EventArgs e)
602 throw new NotImplementedException("COM/ActiveX support is not implemented");
605 protected override void OnFontChanged (EventArgs e)
607 throw new NotImplementedException("COM/ActiveX support is not implemented");
610 protected override void OnForeColorChanged (EventArgs e)
612 throw new NotImplementedException("COM/ActiveX support is not implemented");
615 protected override void OnHandleCreated (EventArgs e)
617 throw new NotImplementedException("COM/ActiveX support is not implemented");
620 protected virtual void OnInPlaceActive ()
622 throw new NotImplementedException("COM/ActiveX support is not implemented");
625 [EditorBrowsable (EditorBrowsableState.Advanced)]
626 protected override void OnLostFocus (EventArgs e)
628 throw new NotImplementedException("COM/ActiveX support is not implemented");
631 protected override bool ProcessDialogKey (Keys keyData)
633 throw new NotImplementedException("COM/ActiveX support is not implemented");
636 protected override bool ProcessMnemonic (char charCode)
638 throw new NotImplementedException("COM/ActiveX support is not implemented");
641 [EditorBrowsable (EditorBrowsableState.Advanced)]
642 protected bool PropsValid ()
644 throw new NotImplementedException("COM/ActiveX support is not implemented");
647 [EditorBrowsable (EditorBrowsableState.Advanced)]
648 protected void RaiseOnMouseDown (short button, short shift, int x, int y)
650 throw new NotImplementedException("COM/ActiveX support is not implemented");
653 [EditorBrowsable (EditorBrowsableState.Advanced)]
654 protected void RaiseOnMouseDown (short button, short shift, float x, float y)
656 throw new NotImplementedException("COM/ActiveX support is not implemented");
659 [EditorBrowsable (EditorBrowsableState.Advanced)]
660 protected void RaiseOnMouseDown (object o1, object o2, object o3, object o4)
662 throw new NotImplementedException("COM/ActiveX support is not implemented");
665 [EditorBrowsable (EditorBrowsableState.Advanced)]
666 protected void RaiseOnMouseMove (short button, short shift, int x, int y)
668 throw new NotImplementedException("COM/ActiveX support is not implemented");
671 [EditorBrowsable (EditorBrowsableState.Advanced)]
672 protected void RaiseOnMouseMove (short button, short shift, float x, float y)
674 throw new NotImplementedException("COM/ActiveX support is not implemented");
677 [EditorBrowsable (EditorBrowsableState.Advanced)]
678 protected void RaiseOnMouseMove (object o1, object o2, object o3, object o4)
680 throw new NotImplementedException("COM/ActiveX support is not implemented");
683 [EditorBrowsable (EditorBrowsableState.Advanced)]
684 protected void RaiseOnMouseUp (short button, short shift, int x, int y)
686 throw new NotImplementedException("COM/ActiveX support is not implemented");
689 [EditorBrowsable (EditorBrowsableState.Advanced)]
690 protected void RaiseOnMouseUp (short button, short shift, float x, float y)
692 throw new NotImplementedException("COM/ActiveX support is not implemented");
695 [EditorBrowsable (EditorBrowsableState.Advanced)]
696 protected void RaiseOnMouseUp (object o1, object o2, object o3, object o4)
698 throw new NotImplementedException("COM/ActiveX support is not implemented");
701 protected void SetAboutBoxDelegate (AxHost.AboutBoxDelegate d)
703 throw new NotImplementedException("COM/ActiveX support is not implemented");
706 protected override void SetBoundsCore (int x, int y, int width, int height, BoundsSpecified specified)
708 throw new NotImplementedException("COM/ActiveX support is not implemented");
711 protected override void SetVisibleCore (bool value)
713 throw new NotImplementedException("COM/ActiveX support is not implemented");
716 protected override void WndProc (ref Message m)
718 throw new NotImplementedException("COM/ActiveX support is not implemented");
720 #endregion // Protected Instance Methods
724 [EditorBrowsable (EditorBrowsableState.Never)]
725 public new event EventHandler BackColorChanged {
726 add { base.BackColorChanged += value; }
727 remove { base.BackColorChanged -= value; }
731 [EditorBrowsable (EditorBrowsableState.Never)]
732 public new event EventHandler BackgroundImageChanged {
733 add { base.BackgroundImageChanged += value; }
734 remove { base.BackgroundImageChanged -= value; }
738 [EditorBrowsable (EditorBrowsableState.Never)]
739 public new event EventHandler BindingContextChanged {
740 add { base.BindingContextChanged += value; }
741 remove { base.BindingContextChanged -= value; }
745 [EditorBrowsable (EditorBrowsableState.Never)]
746 public new event UICuesEventHandler ChangeUICues {
747 add { base.ChangeUICues += value; }
748 remove { base.ChangeUICues -= value; }
752 [EditorBrowsable (EditorBrowsableState.Never)]
753 public new event EventHandler Click {
754 add { base.Click += value; }
755 remove { base.Click -= value; }
759 [EditorBrowsable (EditorBrowsableState.Never)]
760 public new event EventHandler ContextMenuChanged {
761 add { base.ContextMenuChanged += value; }
762 remove { base.ContextMenuChanged -= value; }
766 [EditorBrowsable (EditorBrowsableState.Never)]
767 public new event EventHandler CursorChanged {
768 add { base.CursorChanged += value; }
769 remove { base.CursorChanged -= value; }
773 [EditorBrowsable (EditorBrowsableState.Never)]
774 public new event EventHandler DoubleClick {
775 add { base.DoubleClick += value; }
776 remove { base.DoubleClick -= value; }
780 [EditorBrowsable (EditorBrowsableState.Never)]
781 public new event DragEventHandler DragDrop {
782 add { base.DragDrop += value; }
783 remove { base.DragDrop -= value; }
787 [EditorBrowsable (EditorBrowsableState.Never)]
788 public new event DragEventHandler DragEnter {
789 add { base.DragEnter += value; }
790 remove { base.DragEnter -= value; }
794 [EditorBrowsable (EditorBrowsableState.Never)]
795 public new event EventHandler DragLeave {
796 add { base.DragLeave += value; }
797 remove { base.DragLeave -= value; }
801 [EditorBrowsable (EditorBrowsableState.Never)]
802 public new event DragEventHandler DragOver {
803 add { base.DragOver += value; }
804 remove { base.DragOver -= value; }
808 [EditorBrowsable (EditorBrowsableState.Never)]
809 public new event EventHandler EnabledChanged {
810 add { base.EnabledChanged += value; }
811 remove { base.EnabledChanged -= value; }
815 [EditorBrowsable (EditorBrowsableState.Never)]
816 public new event EventHandler FontChanged {
817 add { base.FontChanged += value; }
818 remove { base.FontChanged -= value; }
822 [EditorBrowsable (EditorBrowsableState.Never)]
823 public new event EventHandler ForeColorChanged {
824 add { base.ForeColorChanged += value; }
825 remove { base.ForeColorChanged -= value; }
829 [EditorBrowsable (EditorBrowsableState.Never)]
830 public new event GiveFeedbackEventHandler GiveFeedback {
831 add { base.GiveFeedback += value; }
832 remove { base.GiveFeedback -= value; }
836 [EditorBrowsable (EditorBrowsableState.Never)]
837 public new event HelpEventHandler HelpRequested {
838 add { base.HelpRequested += value; }
839 remove { base.HelpRequested -= value; }
843 [EditorBrowsable (EditorBrowsableState.Never)]
844 public new event EventHandler ImeModeChanged {
845 add { base.ImeModeChanged += value; }
846 remove { base.ImeModeChanged -= value; }
850 [EditorBrowsable (EditorBrowsableState.Never)]
851 public new event KeyEventHandler KeyDown {
852 add { base.KeyDown += value; }
853 remove { base.KeyDown -= value; }
857 [EditorBrowsable (EditorBrowsableState.Never)]
858 public new event KeyPressEventHandler KeyPress {
859 add { base.KeyPress += value; }
860 remove { base.KeyPress -= value; }
864 [EditorBrowsable (EditorBrowsableState.Never)]
865 public new event KeyEventHandler KeyUp {
866 add { base.KeyUp += value; }
867 remove { base.KeyUp -= value; }
871 [EditorBrowsable (EditorBrowsableState.Never)]
872 public new event LayoutEventHandler Layout {
873 add { base.Layout += value; }
874 remove { base.Layout -= value; }
878 [EditorBrowsable (EditorBrowsableState.Never)]
879 public new event MouseEventHandler MouseDown {
880 add { base.MouseDown += value; }
881 remove { base.MouseDown -= value; }
885 [EditorBrowsable (EditorBrowsableState.Never)]
886 public new event EventHandler MouseEnter {
887 add { base.MouseEnter += value; }
888 remove { base.MouseEnter -= value; }
892 [EditorBrowsable (EditorBrowsableState.Never)]
893 public new event EventHandler MouseHover {
894 add { base.MouseHover += value; }
895 remove { base.MouseHover -= value; }
899 [EditorBrowsable (EditorBrowsableState.Never)]
900 public new event EventHandler MouseLeave {
901 add { base.MouseLeave += value; }
902 remove { base.MouseLeave -= value; }
906 [EditorBrowsable (EditorBrowsableState.Never)]
907 public new event MouseEventHandler MouseMove {
908 add { base.MouseMove += value; }
909 remove { base.MouseMove -= value; }
913 [EditorBrowsable (EditorBrowsableState.Never)]
914 public new event MouseEventHandler MouseUp {
915 add { base.MouseUp += value; }
916 remove { base.MouseUp -= value; }
920 [EditorBrowsable (EditorBrowsableState.Never)]
921 public new event MouseEventHandler MouseWheel {
922 add { base.MouseWheel += value; }
923 remove { base.MouseWheel -= value; }
927 [EditorBrowsable (EditorBrowsableState.Never)]
928 public new event PaintEventHandler Paint {
929 add { base.Paint += value; }
930 remove { base.Paint -= value; }
934 [EditorBrowsable (EditorBrowsableState.Never)]
935 public new event QueryAccessibilityHelpEventHandler QueryAccessibilityHelp {
936 add { base.QueryAccessibilityHelp += value; }
937 remove { base.QueryAccessibilityHelp -= value; }
941 [EditorBrowsable (EditorBrowsableState.Never)]
942 public new event QueryContinueDragEventHandler QueryContinueDrag {
943 add { base.QueryContinueDrag += value; }
944 remove { base.QueryContinueDrag -= value; }
948 [EditorBrowsable (EditorBrowsableState.Never)]
949 public new event EventHandler RightToLeftChanged {
950 add { base.RightToLeftChanged += value; }
951 remove { base.RightToLeftChanged -= value; }
955 [EditorBrowsable (EditorBrowsableState.Never)]
956 public new event EventHandler StyleChanged {
957 add { base.StyleChanged += value; }
958 remove { base.StyleChanged -= value; }
962 [EditorBrowsable (EditorBrowsableState.Never)]
963 public new event EventHandler BackgroundImageLayoutChanged {
964 add { base.BackgroundImageLayoutChanged += value; }
965 remove { base.BackgroundImageLayoutChanged -= value; }
968 static object MouseClickEvent = new object ();
969 static object MouseDoubleClickEvent = new object ();
972 [EditorBrowsable (EditorBrowsableState.Never)]
973 public new event EventHandler MouseClick {
974 add { Events.AddHandler (MouseClickEvent, value); }
975 remove { Events.RemoveHandler (MouseClickEvent, value); }
979 [EditorBrowsable (EditorBrowsableState.Never)]
980 public new event EventHandler MouseDoubleClick {
981 add { Events.AddHandler (MouseDoubleClickEvent, value); }
982 remove { Events.RemoveHandler (MouseDoubleClickEvent, value); }
986 [EditorBrowsable (EditorBrowsableState.Never)]
987 public new event EventHandler TextChanged {
988 add { base.TextChanged += value; }
989 remove { base.TextChanged -= value; }
994 protected delegate void AboutBoxDelegate ();
995 #endregion // Delegates
998 [EditorBrowsable (EditorBrowsableState.Advanced)]
999 AttributeCollection ICustomTypeDescriptor.GetAttributes ()
1001 throw new NotImplementedException("COM/ActiveX support is not implemented");
1004 [EditorBrowsable (EditorBrowsableState.Advanced)]
1005 string ICustomTypeDescriptor.GetClassName ()
1007 throw new NotImplementedException("COM/ActiveX support is not implemented");
1010 [EditorBrowsable (EditorBrowsableState.Advanced)]
1011 string ICustomTypeDescriptor.GetComponentName ()
1013 throw new NotImplementedException("COM/ActiveX support is not implemented");
1016 [EditorBrowsable (EditorBrowsableState.Advanced)]
1017 TypeConverter ICustomTypeDescriptor.GetConverter ()
1019 throw new NotImplementedException("COM/ActiveX support is not implemented");
1022 [EditorBrowsable (EditorBrowsableState.Advanced)]
1023 EventDescriptor ICustomTypeDescriptor.GetDefaultEvent ()
1025 throw new NotImplementedException("COM/ActiveX support is not implemented");
1028 [EditorBrowsable (EditorBrowsableState.Advanced)]
1029 PropertyDescriptor ICustomTypeDescriptor.GetDefaultProperty ()
1031 throw new NotImplementedException("COM/ActiveX support is not implemented");
1034 [EditorBrowsable (EditorBrowsableState.Advanced)]
1035 object ICustomTypeDescriptor.GetEditor (Type editorBaseType)
1037 throw new NotImplementedException("COM/ActiveX support is not implemented");
1040 [EditorBrowsable (EditorBrowsableState.Advanced)]
1041 EventDescriptorCollection ICustomTypeDescriptor.GetEvents ()
1043 throw new NotImplementedException("COM/ActiveX support is not implemented");
1046 [EditorBrowsable (EditorBrowsableState.Advanced)]
1047 EventDescriptorCollection ICustomTypeDescriptor.GetEvents (Attribute[] attributes)
1049 throw new NotImplementedException("COM/ActiveX support is not implemented");
1052 [EditorBrowsable (EditorBrowsableState.Advanced)]
1053 PropertyDescriptorCollection ICustomTypeDescriptor.GetProperties ()
1055 throw new NotImplementedException("COM/ActiveX support is not implemented");
1058 [EditorBrowsable (EditorBrowsableState.Advanced)]
1059 PropertyDescriptorCollection ICustomTypeDescriptor.GetProperties (Attribute[] attributes)
1061 throw new NotImplementedException("COM/ActiveX support is not implemented");
1064 [EditorBrowsable (EditorBrowsableState.Advanced)]
1065 object ICustomTypeDescriptor.GetPropertyOwner (PropertyDescriptor pd)
1067 throw new NotImplementedException("COM/ActiveX support is not implemented");
1069 #endregion // Interfaces