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)]
41 [ClassInterface (ClassInterfaceType.AutoDispatch)]
44 public abstract class AxHost : Control, ISupportInitialize, ICustomTypeDescriptor {
45 #region AxHost Subclasses
46 #region AxHost.ActiveXInvokeKind Enum
47 public enum ActiveXInvokeKind {
52 #endregion // AxHost.ActiveXInvokeKind Enum
54 #region AxHost.AxComponentEditor Class
58 public class AxComponentEditor : System.Windows.Forms.Design.WindowsFormsComponentEditor {
59 public AxComponentEditor ()
61 throw new NotImplementedException("COM/ActiveX support is not implemented");
64 public override bool EditComponent (ITypeDescriptorContext context, object obj, IWin32Window parent)
66 throw new NotImplementedException("COM/ActiveX support is not implemented");
69 #endregion // AxHost.AxComponentEditor Class
71 #region AxHost.ClsidAttribute
72 [AttributeUsage(AttributeTargets.Class,Inherited=false)]
73 public sealed class ClsidAttribute : Attribute {
76 public ClsidAttribute (string clsid)
85 #endregion AxHost.ClsidAttribute
87 #region AxHost.ConnectionPointCookie
91 public class ConnectionPointCookie {
92 public ConnectionPointCookie (object source, object sink, Type eventInterface)
94 throw new NotImplementedException("COM/ActiveX support is not implemented");
97 public void Disconnect ()
99 throw new NotImplementedException("COM/ActiveX support is not implemented");
102 ~ConnectionPointCookie ()
104 throw new NotImplementedException("COM/ActiveX support is not implemented");
107 #endregion // AxHost.ConnectionPointCookie
109 #region AxHost.InvalidActiveXStateException Class
110 public class InvalidActiveXStateException : Exception {
112 public InvalidActiveXStateException ()
114 throw new NotImplementedException("COM/ActiveX support is not implemented");
118 public InvalidActiveXStateException (string name, ActiveXInvokeKind kind)
120 throw new NotImplementedException("COM/ActiveX support is not implemented");
123 public override string ToString ()
125 throw new NotImplementedException("COM/ActiveX support is not implemented");
128 #endregion // AxHost.InvalidActiveXStateException Class
130 #region AxHost.State Class
132 [TypeConverter("System.ComponentModel.TypeConverter, " + Consts.AssemblySystem)]
133 public class State : ISerializable {
134 public State (Stream ms, int storageType, bool manualUpdate, string licKey)
136 //throw new NotImplementedException("COM/ActiveX support is not implemented");
144 State (SerializationInfo info, StreamingContext context)
148 void ISerializable.GetObjectData (SerializationInfo si,StreamingContext context)
150 //throw new NotImplementedException("COM/ActiveX support is not implemented");
153 #endregion // AxHost.State Class
155 #region AxHost.TypeLibraryTimeStampAttribute Class
156 [AttributeUsage(AttributeTargets.Assembly, Inherited=false)]
157 public sealed class TypeLibraryTimeStampAttribute : Attribute {
158 public TypeLibraryTimeStampAttribute (string timestamp)
160 throw new NotImplementedException("COM/ActiveX support is not implemented");
163 public DateTime Value {
165 throw new NotImplementedException("COM/ActiveX support is not implemented");
169 #endregion // AxHost.TypeLibraryTimeStampAttribute Class
171 #region AxHost.StateConverter Class
172 public class StateConverter : System.ComponentModel.TypeConverter {
173 public StateConverter ()
175 throw new NotImplementedException("COM/ActiveX support is not implemented");
178 public override bool CanConvertFrom (ITypeDescriptorContext context, Type sourceType)
180 throw new NotImplementedException("COM/ActiveX support is not implemented");
183 public override bool CanConvertTo (ITypeDescriptorContext context, Type destinationType)
185 throw new NotImplementedException("COM/ActiveX support is not implemented");
188 public override object ConvertFrom (ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value)
190 throw new NotImplementedException("COM/ActiveX support is not implemented");
193 public override object ConvertTo (ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value, Type destinationType)
195 throw new NotImplementedException("COM/ActiveX support is not implemented");
198 #endregion // AxHost.StateConverter Class
199 #endregion // AxHost Subclasses
201 #region Protected Constructors
202 protected AxHost (string clsid)
204 throw new NotImplementedException("COM/ActiveX support is not implemented");
207 protected AxHost (string clsid, int flags)
209 throw new NotImplementedException("COM/ActiveX support is not implemented");
211 #endregion // Public Instance Properties
213 #region Public Instance Properties
215 [EditorBrowsable (EditorBrowsableState.Never)]
216 public override Color BackColor {
218 throw new NotImplementedException("COM/ActiveX support is not implemented");
221 throw new NotImplementedException("COM/ActiveX support is not implemented");
226 [EditorBrowsable (EditorBrowsableState.Never)]
228 [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
230 public override Image BackgroundImage {
232 throw new NotImplementedException("COM/ActiveX support is not implemented");
236 throw new NotImplementedException("COM/ActiveX support is not implemented");
242 [EditorBrowsable (EditorBrowsableState.Never)]
243 [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
244 public override ImageLayout BackgroundImageLayout {
246 throw new NotImplementedException("COM/ActiveX support is not implemented");
250 throw new NotImplementedException("COM/ActiveX support is not implemented");
256 [EditorBrowsable (EditorBrowsableState.Advanced)]
258 [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
260 public ContainerControl ContainingControl {
262 throw new NotImplementedException("COM/ActiveX support is not implemented");
266 throw new NotImplementedException("COM/ActiveX support is not implemented");
271 [EditorBrowsable (EditorBrowsableState.Never)]
272 public override ContextMenu ContextMenu {
274 throw new NotImplementedException("COM/ActiveX support is not implemented");
278 throw new NotImplementedException("COM/ActiveX support is not implemented");
283 [EditorBrowsable (EditorBrowsableState.Never)]
284 public override Cursor Cursor {
286 throw new NotImplementedException("COM/ActiveX support is not implemented");
290 throw new NotImplementedException("COM/ActiveX support is not implemented");
295 [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
296 [EditorBrowsable (EditorBrowsableState.Advanced)]
297 public bool EditMode {
299 throw new NotImplementedException("COM/ActiveX support is not implemented");
304 [EditorBrowsable (EditorBrowsableState.Never)]
305 public new virtual bool Enabled {
307 throw new NotImplementedException("COM/ActiveX support is not implemented");
311 throw new NotImplementedException("COM/ActiveX support is not implemented");
316 [EditorBrowsable (EditorBrowsableState.Never)]
317 public override Font Font {
319 throw new NotImplementedException("COM/ActiveX support is not implemented");
323 throw new NotImplementedException("COM/ActiveX support is not implemented");
328 [EditorBrowsable (EditorBrowsableState.Never)]
329 public override Color ForeColor {
331 throw new NotImplementedException("COM/ActiveX support is not implemented");
335 throw new NotImplementedException("COM/ActiveX support is not implemented");
340 [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
341 [EditorBrowsable (EditorBrowsableState.Advanced)]
342 public bool HasAboutBox {
344 throw new NotImplementedException("COM/ActiveX support is not implemented");
350 [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
351 [EditorBrowsable (EditorBrowsableState.Never)]
352 public new ImeMode ImeMode {
354 throw new NotImplementedException("COM/ActiveX support is not implemented");
357 throw new NotImplementedException("COM/ActiveX support is not implemented");
363 [DefaultValue (null)]
364 [EditorBrowsable (EditorBrowsableState.Advanced)]
365 [RefreshProperties (RefreshProperties.All)]
366 public AxHost.State OcxState {
368 throw new NotImplementedException("COM/ActiveX support is not implemented");
372 throw new NotImplementedException("COM/ActiveX support is not implemented");
377 [EditorBrowsable (EditorBrowsableState.Never)]
379 public new virtual bool RightToLeft {
381 throw new NotImplementedException("COM/ActiveX support is not implemented");
385 throw new NotImplementedException("COM/ActiveX support is not implemented");
389 public override ISite Site {
391 throw new NotImplementedException("COM/ActiveX support is not implemented");
396 [EditorBrowsable (EditorBrowsableState.Never)]
397 public override string Text {
398 get { return base.Text; }
399 set { base.Text = value; }
401 #endregion // Protected Constructors
403 #region Protected Instance Properties
404 protected override CreateParams CreateParams {
406 throw new NotImplementedException("COM/ActiveX support is not implemented");
410 protected override Size DefaultSize {
412 return new Size (75, 23);
415 #endregion // Protected Instance Properties
417 #region Protected Static Methods
418 [CLSCompliant(false)]
419 [EditorBrowsable (EditorBrowsableState.Advanced)]
420 protected static Color GetColorFromOleColor (uint color)
422 throw new NotImplementedException("COM/ActiveX support is not implemented");
425 [EditorBrowsable (EditorBrowsableState.Advanced)]
426 protected static Font GetFontFromIFont (object font)
428 throw new NotImplementedException("COM/ActiveX support is not implemented");
431 [EditorBrowsable (EditorBrowsableState.Advanced)]
432 protected static Font GetFontFromIFontDisp (object font)
434 throw new NotImplementedException("COM/ActiveX support is not implemented");
437 [EditorBrowsable (EditorBrowsableState.Advanced)]
438 protected static object GetIFontDispFromFont (Font font)
440 throw new NotImplementedException("COM/ActiveX support is not implemented");
443 [EditorBrowsable (EditorBrowsableState.Advanced)]
444 protected static object GetIFontFromFont (Font font)
446 throw new NotImplementedException("COM/ActiveX support is not implemented");
449 [EditorBrowsable (EditorBrowsableState.Advanced)]
450 protected static object GetIPictureDispFromPicture (Image image)
452 throw new NotImplementedException("COM/ActiveX support is not implemented");
455 [EditorBrowsable (EditorBrowsableState.Advanced)]
456 protected static object GetIPictureFromCursor (Cursor cursor)
458 throw new NotImplementedException("COM/ActiveX support is not implemented");
461 [EditorBrowsable (EditorBrowsableState.Advanced)]
462 protected static object GetIPictureFromPicture (Image image)
464 throw new NotImplementedException("COM/ActiveX support is not implemented");
467 [EditorBrowsable (EditorBrowsableState.Advanced)]
468 protected static double GetOADateFromTime (DateTime time)
470 throw new NotImplementedException("COM/ActiveX support is not implemented");
473 [CLSCompliant(false)]
474 [EditorBrowsable (EditorBrowsableState.Advanced)]
475 protected static uint GetOleColorFromColor (Color color)
477 throw new NotImplementedException("COM/ActiveX support is not implemented");
480 [EditorBrowsable (EditorBrowsableState.Advanced)]
481 protected static Image GetPictureFromIPicture (object picture)
483 throw new NotImplementedException("COM/ActiveX support is not implemented");
486 [EditorBrowsable (EditorBrowsableState.Advanced)]
487 protected static Image GetPictureFromIPictureDisp (object picture)
489 throw new NotImplementedException("COM/ActiveX support is not implemented");
492 [EditorBrowsable (EditorBrowsableState.Advanced)]
493 protected static DateTime GetTimeFromOADate (double date)
495 throw new NotImplementedException("COM/ActiveX support is not implemented");
497 #endregion // Protected Static Methods
499 #region Public Instance Methods
500 [EditorBrowsable (EditorBrowsableState.Advanced)]
501 public void BeginInit ()
503 throw new NotImplementedException("COM/ActiveX support is not implemented");
506 public void DoVerb (int verb)
508 throw new NotImplementedException("COM/ActiveX support is not implemented");
511 [EditorBrowsable (EditorBrowsableState.Advanced)]
512 public void EndInit ()
514 throw new NotImplementedException("COM/ActiveX support is not implemented");
517 [EditorBrowsable (EditorBrowsableState.Advanced)]
518 public object GetOcx ()
520 throw new NotImplementedException("COM/ActiveX support is not implemented");
523 public bool HasPropertyPages ()
525 throw new NotImplementedException("COM/ActiveX support is not implemented");
528 [EditorBrowsable (EditorBrowsableState.Advanced)]
529 public void InvokeEditMode ()
531 throw new NotImplementedException("COM/ActiveX support is not implemented");
534 [EditorBrowsable (EditorBrowsableState.Advanced)]
535 public void MakeDirty ()
537 throw new NotImplementedException("COM/ActiveX support is not implemented");
540 public override bool PreProcessMessage (ref Message msg)
542 throw new NotImplementedException("COM/ActiveX support is not implemented");
545 public void ShowAboutBox ()
547 throw new NotImplementedException("COM/ActiveX support is not implemented");
550 public void ShowPropertyPages ()
552 throw new NotImplementedException("COM/ActiveX support is not implemented");
555 public void ShowPropertyPages (Control control)
557 throw new NotImplementedException("COM/ActiveX support is not implemented");
559 #endregion // Public Instance Methods
561 #region Protected Instance Methods
562 protected virtual void AttachInterfaces ()
564 throw new NotImplementedException("COM/ActiveX support is not implemented");
567 protected override void CreateHandle ()
569 throw new NotImplementedException("COM/ActiveX support is not implemented");
573 protected virtual object CreateInstanceCore (Guid clsid)
575 throw new NotImplementedException("COM/ActiveX support is not implemented");
579 [EditorBrowsable (EditorBrowsableState.Advanced)]
580 protected virtual void CreateSink ()
582 throw new NotImplementedException("COM/ActiveX support is not implemented");
585 protected override void DestroyHandle ()
587 throw new NotImplementedException("COM/ActiveX support is not implemented");
590 [EditorBrowsable (EditorBrowsableState.Advanced)]
591 protected virtual void DetachSink ()
593 throw new NotImplementedException("COM/ActiveX support is not implemented");
596 protected override void Dispose (bool disposing)
598 throw new NotImplementedException("COM/ActiveX support is not implemented");
602 [EditorBrowsable (EditorBrowsableState.Never)]
603 public new void DrawToBitmap (Bitmap bitmap, Rectangle targetBounds)
605 throw new NotImplementedException("COM/ActiveX support is not implemented");
608 [EditorBrowsable (EditorBrowsableState.Advanced)]
609 protected new virtual Rectangle GetScaledBounds (Rectangle bounds, SizeF factor, BoundsSpecified specified)
611 throw new NotImplementedException("COM/ActiveX support is not implemented");
615 protected override bool IsInputChar (char charCode)
617 throw new NotImplementedException("COM/ActiveX support is not implemented");
620 protected override void OnBackColorChanged (EventArgs e)
622 throw new NotImplementedException("COM/ActiveX support is not implemented");
625 protected override void OnFontChanged (EventArgs e)
627 throw new NotImplementedException("COM/ActiveX support is not implemented");
630 protected override void OnForeColorChanged (EventArgs e)
632 throw new NotImplementedException("COM/ActiveX support is not implemented");
635 protected override void OnHandleCreated (EventArgs e)
637 throw new NotImplementedException("COM/ActiveX support is not implemented");
640 protected virtual void OnInPlaceActive ()
642 throw new NotImplementedException("COM/ActiveX support is not implemented");
645 [EditorBrowsable (EditorBrowsableState.Advanced)]
646 protected override void OnLostFocus (EventArgs e)
648 throw new NotImplementedException("COM/ActiveX support is not implemented");
651 protected override bool ProcessDialogKey (Keys keyData)
653 throw new NotImplementedException("COM/ActiveX support is not implemented");
656 protected override bool ProcessMnemonic (char charCode)
658 throw new NotImplementedException("COM/ActiveX support is not implemented");
661 [EditorBrowsable (EditorBrowsableState.Advanced)]
662 protected bool PropsValid ()
664 throw new NotImplementedException("COM/ActiveX support is not implemented");
667 [EditorBrowsable (EditorBrowsableState.Advanced)]
668 protected void RaiseOnMouseDown (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 RaiseOnMouseDown (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 RaiseOnMouseDown (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 RaiseOnMouseMove (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 RaiseOnMouseMove (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 RaiseOnMouseMove (object o1, object o2, object o3, object o4)
700 throw new NotImplementedException("COM/ActiveX support is not implemented");
703 [EditorBrowsable (EditorBrowsableState.Advanced)]
704 protected void RaiseOnMouseUp (short button, short shift, int x, int y)
706 throw new NotImplementedException("COM/ActiveX support is not implemented");
709 [EditorBrowsable (EditorBrowsableState.Advanced)]
710 protected void RaiseOnMouseUp (short button, short shift, float x, float y)
712 throw new NotImplementedException("COM/ActiveX support is not implemented");
715 [EditorBrowsable (EditorBrowsableState.Advanced)]
716 protected void RaiseOnMouseUp (object o1, object o2, object o3, object o4)
718 throw new NotImplementedException("COM/ActiveX support is not implemented");
721 protected void SetAboutBoxDelegate (AxHost.AboutBoxDelegate d)
723 throw new NotImplementedException("COM/ActiveX support is not implemented");
726 protected override void SetBoundsCore (int x, int y, int width, int height, BoundsSpecified specified)
728 throw new NotImplementedException("COM/ActiveX support is not implemented");
731 protected override void SetVisibleCore (bool value)
733 throw new NotImplementedException("COM/ActiveX support is not implemented");
736 protected override void WndProc (ref Message m)
738 throw new NotImplementedException("COM/ActiveX support is not implemented");
740 #endregion // Protected Instance Methods
744 [EditorBrowsable (EditorBrowsableState.Never)]
745 public new event EventHandler BackColorChanged {
746 add { base.BackColorChanged += value; }
747 remove { base.BackColorChanged -= value; }
751 [EditorBrowsable (EditorBrowsableState.Never)]
752 public new event EventHandler BackgroundImageChanged {
753 add { base.BackgroundImageChanged += value; }
754 remove { base.BackgroundImageChanged -= value; }
758 [EditorBrowsable (EditorBrowsableState.Never)]
759 public new event EventHandler BindingContextChanged {
760 add { base.BindingContextChanged += value; }
761 remove { base.BindingContextChanged -= value; }
765 [EditorBrowsable (EditorBrowsableState.Never)]
766 public new event UICuesEventHandler ChangeUICues {
767 add { base.ChangeUICues += value; }
768 remove { base.ChangeUICues -= value; }
772 [EditorBrowsable (EditorBrowsableState.Never)]
773 public new event EventHandler Click {
774 add { base.Click += value; }
775 remove { base.Click -= value; }
779 [EditorBrowsable (EditorBrowsableState.Never)]
780 public new event EventHandler ContextMenuChanged {
781 add { base.ContextMenuChanged += value; }
782 remove { base.ContextMenuChanged -= value; }
786 [EditorBrowsable (EditorBrowsableState.Never)]
787 public new event EventHandler CursorChanged {
788 add { base.CursorChanged += value; }
789 remove { base.CursorChanged -= value; }
793 [EditorBrowsable (EditorBrowsableState.Never)]
794 public new event EventHandler DoubleClick {
795 add { base.DoubleClick += value; }
796 remove { base.DoubleClick -= value; }
800 [EditorBrowsable (EditorBrowsableState.Never)]
801 public new event DragEventHandler DragDrop {
802 add { base.DragDrop += value; }
803 remove { base.DragDrop -= value; }
807 [EditorBrowsable (EditorBrowsableState.Never)]
808 public new event DragEventHandler DragEnter {
809 add { base.DragEnter += value; }
810 remove { base.DragEnter -= value; }
814 [EditorBrowsable (EditorBrowsableState.Never)]
815 public new event EventHandler DragLeave {
816 add { base.DragLeave += value; }
817 remove { base.DragLeave -= value; }
821 [EditorBrowsable (EditorBrowsableState.Never)]
822 public new event DragEventHandler DragOver {
823 add { base.DragOver += value; }
824 remove { base.DragOver -= value; }
828 [EditorBrowsable (EditorBrowsableState.Never)]
829 public new event EventHandler EnabledChanged {
830 add { base.EnabledChanged += value; }
831 remove { base.EnabledChanged -= value; }
835 [EditorBrowsable (EditorBrowsableState.Never)]
836 public new event EventHandler FontChanged {
837 add { base.FontChanged += value; }
838 remove { base.FontChanged -= value; }
842 [EditorBrowsable (EditorBrowsableState.Never)]
843 public new event EventHandler ForeColorChanged {
844 add { base.ForeColorChanged += value; }
845 remove { base.ForeColorChanged -= value; }
849 [EditorBrowsable (EditorBrowsableState.Never)]
850 public new event GiveFeedbackEventHandler GiveFeedback {
851 add { base.GiveFeedback += value; }
852 remove { base.GiveFeedback -= value; }
856 [EditorBrowsable (EditorBrowsableState.Never)]
857 public new event HelpEventHandler HelpRequested {
858 add { base.HelpRequested += value; }
859 remove { base.HelpRequested -= value; }
863 [EditorBrowsable (EditorBrowsableState.Never)]
864 public new event EventHandler ImeModeChanged {
865 add { base.ImeModeChanged += value; }
866 remove { base.ImeModeChanged -= value; }
870 [EditorBrowsable (EditorBrowsableState.Never)]
871 public new event KeyEventHandler KeyDown {
872 add { base.KeyDown += value; }
873 remove { base.KeyDown -= value; }
877 [EditorBrowsable (EditorBrowsableState.Never)]
878 public new event KeyPressEventHandler KeyPress {
879 add { base.KeyPress += value; }
880 remove { base.KeyPress -= value; }
884 [EditorBrowsable (EditorBrowsableState.Never)]
885 public new event KeyEventHandler KeyUp {
886 add { base.KeyUp += value; }
887 remove { base.KeyUp -= value; }
891 [EditorBrowsable (EditorBrowsableState.Never)]
892 public new event LayoutEventHandler Layout {
893 add { base.Layout += value; }
894 remove { base.Layout -= value; }
898 [EditorBrowsable (EditorBrowsableState.Never)]
899 public new event MouseEventHandler MouseDown {
900 add { base.MouseDown += value; }
901 remove { base.MouseDown -= value; }
905 [EditorBrowsable (EditorBrowsableState.Never)]
906 public new event EventHandler MouseEnter {
907 add { base.MouseEnter += value; }
908 remove { base.MouseEnter -= value; }
912 [EditorBrowsable (EditorBrowsableState.Never)]
913 public new event EventHandler MouseHover {
914 add { base.MouseHover += value; }
915 remove { base.MouseHover -= value; }
919 [EditorBrowsable (EditorBrowsableState.Never)]
920 public new event EventHandler MouseLeave {
921 add { base.MouseLeave += value; }
922 remove { base.MouseLeave -= value; }
926 [EditorBrowsable (EditorBrowsableState.Never)]
927 public new event MouseEventHandler MouseMove {
928 add { base.MouseMove += value; }
929 remove { base.MouseMove -= value; }
933 [EditorBrowsable (EditorBrowsableState.Never)]
934 public new event MouseEventHandler MouseUp {
935 add { base.MouseUp += value; }
936 remove { base.MouseUp -= value; }
940 [EditorBrowsable (EditorBrowsableState.Never)]
941 public new event MouseEventHandler MouseWheel {
942 add { base.MouseWheel += value; }
943 remove { base.MouseWheel -= value; }
947 [EditorBrowsable (EditorBrowsableState.Never)]
948 public new event PaintEventHandler Paint {
949 add { base.Paint += value; }
950 remove { base.Paint -= value; }
954 [EditorBrowsable (EditorBrowsableState.Never)]
955 public new event QueryAccessibilityHelpEventHandler QueryAccessibilityHelp {
956 add { base.QueryAccessibilityHelp += value; }
957 remove { base.QueryAccessibilityHelp -= value; }
961 [EditorBrowsable (EditorBrowsableState.Never)]
962 public new event QueryContinueDragEventHandler QueryContinueDrag {
963 add { base.QueryContinueDrag += value; }
964 remove { base.QueryContinueDrag -= value; }
968 [EditorBrowsable (EditorBrowsableState.Never)]
969 public new event EventHandler RightToLeftChanged {
970 add { base.RightToLeftChanged += value; }
971 remove { base.RightToLeftChanged -= value; }
975 [EditorBrowsable (EditorBrowsableState.Never)]
976 public new event EventHandler StyleChanged {
977 add { base.StyleChanged += value; }
978 remove { base.StyleChanged -= value; }
983 [EditorBrowsable (EditorBrowsableState.Never)]
984 public new event EventHandler BackgroundImageLayoutChanged {
985 add { base.BackgroundImageLayoutChanged += value; }
986 remove { base.BackgroundImageLayoutChanged -= value; }
989 static object MouseClickEvent = new object ();
990 static object MouseDoubleClickEvent = new object ();
993 [EditorBrowsable (EditorBrowsableState.Never)]
994 public new event EventHandler MouseClick {
995 add { Events.AddHandler (MouseClickEvent, value); }
996 remove { Events.RemoveHandler (MouseClickEvent, value); }
1000 [EditorBrowsable (EditorBrowsableState.Never)]
1001 public new event EventHandler MouseDoubleClick {
1002 add { Events.AddHandler (MouseDoubleClickEvent, value); }
1003 remove { Events.RemoveHandler (MouseDoubleClickEvent, value); }
1007 [EditorBrowsable (EditorBrowsableState.Never)]
1008 public new event EventHandler TabIndexChanged {
1009 add { base.TabIndexChanged += value; }
1010 remove { base.TabIndexChanged -= value; }
1014 [EditorBrowsable (EditorBrowsableState.Never)]
1015 public new event EventHandler TabStopChanged {
1016 add { base.TabStopChanged += value; }
1017 remove { base.TabStopChanged -= value; }
1022 [EditorBrowsable (EditorBrowsableState.Never)]
1023 public new event EventHandler TextChanged {
1024 add { base.TextChanged += value; }
1025 remove { base.TextChanged -= value; }
1027 #endregion // Events
1033 protected delegate void AboutBoxDelegate ();
1034 #endregion // Delegates
1037 [EditorBrowsable (EditorBrowsableState.Advanced)]
1038 AttributeCollection ICustomTypeDescriptor.GetAttributes ()
1040 throw new NotImplementedException("COM/ActiveX support is not implemented");
1043 [EditorBrowsable (EditorBrowsableState.Advanced)]
1044 string ICustomTypeDescriptor.GetClassName ()
1046 throw new NotImplementedException("COM/ActiveX support is not implemented");
1049 [EditorBrowsable (EditorBrowsableState.Advanced)]
1050 string ICustomTypeDescriptor.GetComponentName ()
1052 throw new NotImplementedException("COM/ActiveX support is not implemented");
1055 [EditorBrowsable (EditorBrowsableState.Advanced)]
1056 TypeConverter ICustomTypeDescriptor.GetConverter ()
1058 throw new NotImplementedException("COM/ActiveX support is not implemented");
1061 [EditorBrowsable (EditorBrowsableState.Advanced)]
1062 EventDescriptor ICustomTypeDescriptor.GetDefaultEvent ()
1064 throw new NotImplementedException("COM/ActiveX support is not implemented");
1067 [EditorBrowsable (EditorBrowsableState.Advanced)]
1068 PropertyDescriptor ICustomTypeDescriptor.GetDefaultProperty ()
1070 throw new NotImplementedException("COM/ActiveX support is not implemented");
1073 [EditorBrowsable (EditorBrowsableState.Advanced)]
1074 object ICustomTypeDescriptor.GetEditor (Type editorBaseType)
1076 throw new NotImplementedException("COM/ActiveX support is not implemented");
1079 [EditorBrowsable (EditorBrowsableState.Advanced)]
1080 EventDescriptorCollection ICustomTypeDescriptor.GetEvents ()
1082 throw new NotImplementedException("COM/ActiveX support is not implemented");
1085 [EditorBrowsable (EditorBrowsableState.Advanced)]
1086 EventDescriptorCollection ICustomTypeDescriptor.GetEvents (Attribute[] attributes)
1088 throw new NotImplementedException("COM/ActiveX support is not implemented");
1091 [EditorBrowsable (EditorBrowsableState.Advanced)]
1092 PropertyDescriptorCollection ICustomTypeDescriptor.GetProperties ()
1094 throw new NotImplementedException("COM/ActiveX support is not implemented");
1097 [EditorBrowsable (EditorBrowsableState.Advanced)]
1098 PropertyDescriptorCollection ICustomTypeDescriptor.GetProperties (Attribute[] attributes)
1100 throw new NotImplementedException("COM/ActiveX support is not implemented");
1103 [EditorBrowsable (EditorBrowsableState.Advanced)]
1104 object ICustomTypeDescriptor.GetPropertyOwner (PropertyDescriptor pd)
1106 throw new NotImplementedException("COM/ActiveX support is not implemented");
1108 #endregion // Interfaces