2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
[mono.git] / mcs / class / Managed.Windows.Forms / System.Windows.Forms / AxHost.cs
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:
8 // 
9 // The above copyright notice and this permission notice shall be
10 // included in all copies or substantial portions of the Software.
11 // 
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.
19 //
20 // Copyright (c) 2005 Novell, Inc. (http://www.novell.com)
21 //
22 // Authors:
23 //      Peter Bartok    <pbartok@novell.com>
24 //
25 //
26
27 // NOT COMPLETE
28
29 using System;
30 using System.ComponentModel;
31 using System.Drawing;
32 using System.IO;
33 using System.Runtime.InteropServices;
34 using System.Runtime.Serialization;
35
36 namespace System.Windows.Forms {
37         [MonoTODO("Possibly implement this for Win32; find a way for Linux and Mac")]
38         [DefaultEvent("Enter")]
39         [Designer("System.Windows.Forms.Design.AxHostDesigner, " + Consts.AssemblySystem_Design, "System.ComponentModel.Design.IDesigner")]
40         [DesignTimeVisible(false)]
41         [ToolboxItem(false)]
42         public abstract class AxHost : Control, ISupportInitialize, ICustomTypeDescriptor {
43                 #region AxHost Subclasses
44                         #region AxHost.ActiveXInvokeKind Enum
45                         public enum ActiveXInvokeKind {
46                                 MethodInvoke    = 0,
47                                 PropertyGet     = 1,
48                                 PropertySet     = 2
49                         }
50                         #endregion      // AxHost.ActiveXInvokeKind Enum
51
52                         #region AxHost.AxComponentEditor Class
53                         public class AxComponentEditor : System.Windows.Forms.Design.WindowsFormsComponentEditor {
54                                 public AxComponentEditor() {
55                                         throw new NotImplementedException("COM/ActiveX support is not implemented");
56                                 }
57
58                                 public override bool EditComponent(ITypeDescriptorContext context, object obj, IWin32Window parent) {
59                                         throw new NotImplementedException("COM/ActiveX support is not implemented");
60                                 }
61                         }
62                         #endregion      // AxHost.AxComponentEditor Class
63
64                         #region AxHost.ClsidAttribute
65                         [AttributeUsage(AttributeTargets.Class,Inherited=false)]
66                         public sealed class ClsidAttribute : Attribute {
67                                 string clsid;
68
69                                 public ClsidAttribute (string clsid) {
70                                         this.clsid = clsid;
71                                 }
72
73                                 public string Value {
74                                         get {
75                                                 return clsid;
76                                         }
77                                 }
78                         }
79                         #endregion AxHost.ClsidAttribute
80
81                         #region AxHost.ConnectionPointCookie
82                         [ComVisible(false)]
83                         public class ConnectionPointCookie {
84                                 public ConnectionPointCookie(object source, object sink, Type eventInterface) {
85                                         throw new NotImplementedException("COM/ActiveX support is not implemented");
86                                 }
87
88                                 public void Disconnect() {
89                                         throw new NotImplementedException("COM/ActiveX support is not implemented");
90                                 }
91
92                                 ~ConnectionPointCookie() {
93                                         throw new NotImplementedException("COM/ActiveX support is not implemented");
94                                 }
95                         }
96                         #endregion      // AxHost.ConnectionPointCookie
97                 
98                         #region AxHost.InvalidActiveXStateException  Class
99                         public class InvalidActiveXStateException : Exception {
100                                 public InvalidActiveXStateException(string name, ActiveXInvokeKind kind) {
101                                         throw new NotImplementedException("COM/ActiveX support is not implemented");
102                                 }
103
104                                 public override string ToString() {
105                                         throw new NotImplementedException("COM/ActiveX support is not implemented");
106                                 }
107                         }
108                         #endregion      // AxHost.InvalidActiveXStateException  Class
109                         
110                         #region AxHost.State Class
111                         [Serializable]
112                         [TypeConverter("System.ComponentModel.TypeConverter, " + Consts.AssemblySystem)]
113                         public class State : ISerializable {
114                                 public State(Stream ms, int storageType, bool manualUpdate, string licKey) {
115                                         //throw new NotImplementedException("COM/ActiveX support is not implemented");
116                                 }
117
118                                 private State(SerializationInfo info, StreamingContext context) {
119                                 }
120
121                                 void ISerializable.GetObjectData(SerializationInfo si,StreamingContext context) {
122                                         //throw new NotImplementedException("COM/ActiveX support is not implemented");
123                                 }
124                         }
125                         #endregion      // AxHost.State Class
126
127                         #region AxHost.TypeLibraryTimeStampAttribute Class
128                         [AttributeUsage(AttributeTargets.Assembly, Inherited=false)]
129                         public sealed class TypeLibraryTimeStampAttribute : Attribute {
130                                 public TypeLibraryTimeStampAttribute(string timestamp) {
131                                         throw new NotImplementedException("COM/ActiveX support is not implemented");
132                                 }
133
134                                 public DateTime Value {
135                                         get {
136                                                 throw new NotImplementedException("COM/ActiveX support is not implemented");
137                                         }
138                                 }
139                         }
140                         #endregion      // AxHost.TypeLibraryTimeStampAttribute Class
141
142                         #region AxHost.StateConverter Class
143                         public class StateConverter : System.ComponentModel.TypeConverter {
144                                 public StateConverter() {
145                                         throw new NotImplementedException("COM/ActiveX support is not implemented");
146                                 }
147
148                                 public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) {
149                                         throw new NotImplementedException("COM/ActiveX support is not implemented");
150                                 }
151
152                                 public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) {
153                                         throw new NotImplementedException("COM/ActiveX support is not implemented");
154                                 }
155
156                                 public override object ConvertFrom(ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value) {
157                                         throw new NotImplementedException("COM/ActiveX support is not implemented");
158                                 }
159
160                                 public override object ConvertTo(ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value, Type destinationType) {
161                                         throw new NotImplementedException("COM/ActiveX support is not implemented");
162                                 }
163                         }
164                         #endregion      // AxHost.StateConverter Class
165                 #endregion      // AxHost Subclasses
166
167                 string text;
168
169                 #region Protected Constructors
170                 protected AxHost(string clsid) {
171                         text = "";
172                         throw new NotImplementedException("COM/ActiveX support is not implemented");
173                 }
174
175                 protected AxHost(string clsid, int flags) {
176                         throw new NotImplementedException("COM/ActiveX support is not implemented");
177                 }
178                 #endregion      // Public Instance Properties
179
180                 #region Public Instance Properties
181                 [Browsable(false)]
182                 [EditorBrowsable(EditorBrowsableState.Never)]
183                 public override Color BackColor {
184                         get {
185                                 throw new NotImplementedException("COM/ActiveX support is not implemented");
186                         }
187
188                         set {
189                                 throw new NotImplementedException("COM/ActiveX support is not implemented");
190                         }
191                 }
192                 
193                 [Browsable(false)]
194                 [EditorBrowsable(EditorBrowsableState.Never)]
195                 public override Image BackgroundImage {
196                         get {
197                                 throw new NotImplementedException("COM/ActiveX support is not implemented");
198                         }
199
200                         set {
201                                 throw new NotImplementedException("COM/ActiveX support is not implemented");
202                         }
203                 }
204                 
205                 [Browsable(false)]
206                 [EditorBrowsable(EditorBrowsableState.Advanced)]
207                 public ContainerControl ContainingControl {
208                         get {
209                                 throw new NotImplementedException("COM/ActiveX support is not implemented");
210                         }
211
212                         set {
213                                 throw new NotImplementedException("COM/ActiveX support is not implemented");
214                         }
215                 }
216                 
217                 [Browsable(false)]
218                 [EditorBrowsable(EditorBrowsableState.Never)]
219                 public override ContextMenu ContextMenu {
220                         get {
221                                 throw new NotImplementedException("COM/ActiveX support is not implemented");
222                         }
223
224                         set {
225                                 throw new NotImplementedException("COM/ActiveX support is not implemented");
226                         }
227                 }
228                 
229                 [Browsable(false)]
230                 [EditorBrowsable(EditorBrowsableState.Never)]
231                 public override Cursor Cursor {
232                         get {
233                                 throw new NotImplementedException("COM/ActiveX support is not implemented");
234                         }
235
236                         set {
237                                 throw new NotImplementedException("COM/ActiveX support is not implemented");
238                         }
239                 }
240                 
241                 [Browsable(false)]
242                 [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
243                 [EditorBrowsable(EditorBrowsableState.Advanced)]
244                 public bool EditMode {
245                         get {
246                                 throw new NotImplementedException("COM/ActiveX support is not implemented");
247                         }
248                 }
249
250                 [Browsable(false)]
251                 [EditorBrowsable(EditorBrowsableState.Never)]
252                 public new virtual bool Enabled {
253                         get {
254                                 throw new NotImplementedException("COM/ActiveX support is not implemented");
255                         }
256
257                         set {
258                                 throw new NotImplementedException("COM/ActiveX support is not implemented");
259                         }
260                 }
261                 
262                 [Browsable(false)]
263                 [EditorBrowsable(EditorBrowsableState.Never)]
264                 public override Font Font {
265                         get {
266                                 throw new NotImplementedException("COM/ActiveX support is not implemented");
267                         }
268
269                         set {
270                                 throw new NotImplementedException("COM/ActiveX support is not implemented");
271                         }
272                 }
273                 
274                 [Browsable(false)]
275                 [EditorBrowsable(EditorBrowsableState.Never)]
276                 public override Color ForeColor {
277                         get { 
278                                 throw new NotImplementedException("COM/ActiveX support is not implemented");
279                         }
280
281                         set {
282                                 throw new NotImplementedException("COM/ActiveX support is not implemented");
283                         }
284                 }
285                 
286                 [Browsable(false)]
287                 [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
288                 [EditorBrowsable(EditorBrowsableState.Advanced)]
289                 public bool HasAboutBox {
290                         get { 
291                                 throw new NotImplementedException("COM/ActiveX support is not implemented");
292                         }
293                 }
294                 
295                 [Browsable(false)]
296                 [DefaultValue(null)]
297                 [EditorBrowsable(EditorBrowsableState.Advanced)]
298                 [RefreshProperties(RefreshProperties.All)]
299                 public AxHost.State OcxState {
300                         get {
301                                 throw new NotImplementedException("COM/ActiveX support is not implemented");
302                         }
303
304                         set {
305                                 throw new NotImplementedException("COM/ActiveX support is not implemented");
306                         }
307                 }
308                 
309                 [Browsable(false)]
310                 [EditorBrowsable(EditorBrowsableState.Never)]
311                 [Localizable(true)]
312                 public new virtual bool RightToLeft {
313                         get {
314                                 throw new NotImplementedException("COM/ActiveX support is not implemented");
315                         }
316
317                         set {
318                                 throw new NotImplementedException("COM/ActiveX support is not implemented");
319                         }
320                 }
321                 
322                 public override ISite Site {
323                         set {
324                                 throw new NotImplementedException("COM/ActiveX support is not implemented");
325                         }
326                 }
327                 
328                 [Browsable(false)]
329                 [EditorBrowsable(EditorBrowsableState.Never)]
330                 public override string Text {
331                         get {
332                                 return text;
333                         }
334
335                         set {
336                                 text = value;
337                         }
338                 }
339                 #endregion      // Protected Constructors
340                 
341                 #region Protected Instance Properties
342                 protected override CreateParams CreateParams {
343                         get {
344                                 throw new NotImplementedException("COM/ActiveX support is not implemented");
345                         }
346                 }
347                 
348                 protected override Size DefaultSize {
349                         get {
350                                 return new Size (75, 23);
351                         }
352                 }
353                 #endregion      // Protected Instance Properties
354
355                 #region Protected Static Methods
356                 [CLSCompliant(false)]
357                 [EditorBrowsable(EditorBrowsableState.Advanced)]
358                 protected static Color GetColorFromOleColor(uint color){
359                         throw new NotImplementedException("COM/ActiveX support is not implemented"); 
360                 }
361
362                 [EditorBrowsable(EditorBrowsableState.Advanced)]
363                 protected static Font GetFontFromIFont(object font){
364                         throw new NotImplementedException("COM/ActiveX support is not implemented"); 
365                 }
366
367                 [EditorBrowsable(EditorBrowsableState.Advanced)]
368                 protected static Font GetFontFromIFontDisp(object font){
369                         throw new NotImplementedException("COM/ActiveX support is not implemented"); 
370                 }
371
372                 [EditorBrowsable(EditorBrowsableState.Advanced)]
373                 protected static object GetIFontDispFromFont(Font font){
374                         throw new NotImplementedException("COM/ActiveX support is not implemented"); 
375                 }
376
377                 [EditorBrowsable(EditorBrowsableState.Advanced)]
378                 protected static object GetIFontFromFont(Font font){
379                         throw new NotImplementedException("COM/ActiveX support is not implemented"); 
380                 }
381
382                 [EditorBrowsable(EditorBrowsableState.Advanced)]
383                 protected static object GetIPictureDispFromPicture(Image image){
384                         throw new NotImplementedException("COM/ActiveX support is not implemented"); 
385                 }
386
387                 [EditorBrowsable(EditorBrowsableState.Advanced)]
388                 protected static object GetIPictureFromCursor(Cursor cursor){
389                         throw new NotImplementedException("COM/ActiveX support is not implemented"); 
390                 }
391
392                 [EditorBrowsable(EditorBrowsableState.Advanced)]
393                 protected static object GetIPictureFromPicture(Image image){
394                         throw new NotImplementedException("COM/ActiveX support is not implemented"); 
395                 }
396
397                 [EditorBrowsable(EditorBrowsableState.Advanced)]
398                 protected static double GetOADateFromTime(DateTime time){
399                         throw new NotImplementedException("COM/ActiveX support is not implemented"); 
400                 }
401
402                 [CLSCompliant(false)]
403                 [EditorBrowsable(EditorBrowsableState.Advanced)]
404                 protected static uint GetOleColorFromColor(Color color){
405                         throw new NotImplementedException("COM/ActiveX support is not implemented"); 
406                 }
407
408                 [EditorBrowsable(EditorBrowsableState.Advanced)]
409                 protected static Image GetPictureFromIPicture(object picture){
410                         throw new NotImplementedException("COM/ActiveX support is not implemented"); 
411                 }
412
413                 [EditorBrowsable(EditorBrowsableState.Advanced)]
414                 protected static Image GetPictureFromIPictureDisp(object picture){
415                         throw new NotImplementedException("COM/ActiveX support is not implemented"); 
416                 }
417
418                 [EditorBrowsable(EditorBrowsableState.Advanced)]
419                 protected static DateTime GetTimeFromOADate(double date){
420                         throw new NotImplementedException("COM/ActiveX support is not implemented"); 
421                 }
422                 #endregion      // Protected Static Methods
423
424                 #region Public Instance Methods
425                 [EditorBrowsable(EditorBrowsableState.Advanced)]
426                 public void BeginInit() {
427                         throw new NotImplementedException("COM/ActiveX support is not implemented");
428                 }
429                 
430                 public void DoVerb(int verb){
431                         throw new NotImplementedException("COM/ActiveX support is not implemented");
432                 }
433
434                 [EditorBrowsable(EditorBrowsableState.Advanced)]
435                 public virtual void EndInit() {
436                         throw new NotImplementedException("COM/ActiveX support is not implemented");
437                 }
438
439                 [EditorBrowsable(EditorBrowsableState.Advanced)]
440                 public object GetOcx() {
441                         throw new NotImplementedException("COM/ActiveX support is not implemented");
442                 }
443                 
444                 public bool HasPropertyPages() {
445                         throw new NotImplementedException("COM/ActiveX support is not implemented");
446                 }
447                 
448                 [EditorBrowsable(EditorBrowsableState.Advanced)]
449                 public void InvokeEditMode(){
450                         throw new NotImplementedException("COM/ActiveX support is not implemented");
451                 }
452
453                 [EditorBrowsable(EditorBrowsableState.Advanced)]
454                 public void MakeDirty(){
455                         throw new NotImplementedException("COM/ActiveX support is not implemented");
456                 }
457
458                 public override bool PreProcessMessage(ref Message msg) {
459                         throw new NotImplementedException("COM/ActiveX support is not implemented");
460                 }
461
462                 public void ShowAboutBox() {
463                         throw new NotImplementedException("COM/ActiveX support is not implemented");
464                 }
465                 
466                 public void ShowPropertyPages() {
467                         throw new NotImplementedException("COM/ActiveX support is not implemented");
468                 }
469                 
470                 public void ShowPropertyPages(Control control) {
471                         throw new NotImplementedException("COM/ActiveX support is not implemented");
472                 }
473                 #endregion      // Public Instance Methods
474
475                 #region Protected Instance Methods
476                 protected virtual void AttachInterfaces() {
477                         throw new NotImplementedException("COM/ActiveX support is not implemented");
478                 }
479                 
480                 protected override void CreateHandle() {
481                         throw new NotImplementedException("COM/ActiveX support is not implemented");
482                 }
483                 
484                 [EditorBrowsable(EditorBrowsableState.Advanced)]
485                 protected virtual void CreateSink(){
486                         throw new NotImplementedException("COM/ActiveX support is not implemented");
487                 }
488                 
489                 protected override void DestroyHandle() {
490                         throw new NotImplementedException("COM/ActiveX support is not implemented");
491                 }
492
493                 [EditorBrowsable(EditorBrowsableState.Advanced)]
494                 protected virtual void DetachSink(){
495                         throw new NotImplementedException("COM/ActiveX support is not implemented");
496                 }
497
498                 protected override void Dispose(bool disposing) {
499                         throw new NotImplementedException("COM/ActiveX support is not implemented");
500                 }
501                 
502                 protected override bool IsInputChar(char charCode) {
503                         throw new NotImplementedException("COM/ActiveX support is not implemented");
504                 }
505                 
506                 protected override void OnBackColorChanged(EventArgs e) {
507                         throw new NotImplementedException("COM/ActiveX support is not implemented");
508                 }
509                 
510                 protected override void OnFontChanged(EventArgs e) {
511                         throw new NotImplementedException("COM/ActiveX support is not implemented");
512                 }
513                 
514                 protected override void OnForeColorChanged(EventArgs e) {
515                         throw new NotImplementedException("COM/ActiveX support is not implemented");
516                 }
517                 
518                 protected override void OnHandleCreated(EventArgs e) {
519                         throw new NotImplementedException("COM/ActiveX support is not implemented");
520                 }
521
522                 protected virtual void OnInPlaceActive() {
523                         throw new NotImplementedException("COM/ActiveX support is not implemented");
524                 }
525                 
526                 [EditorBrowsable(EditorBrowsableState.Advanced)]
527                 protected override void OnLostFocus(EventArgs e) {
528                         throw new NotImplementedException("COM/ActiveX support is not implemented");
529                 }
530                 
531                 protected override bool ProcessDialogKey(Keys keyData) {
532                         throw new NotImplementedException("COM/ActiveX support is not implemented");
533                 }
534
535                 protected override bool ProcessMnemonic(char charCode) {
536                         throw new NotImplementedException("COM/ActiveX support is not implemented");
537                 }
538
539                 [EditorBrowsable(EditorBrowsableState.Advanced)]
540                 protected bool PropsValid(){
541                         throw new NotImplementedException("COM/ActiveX support is not implemented"); 
542                 }
543
544                 [EditorBrowsable(EditorBrowsableState.Advanced)]
545                 protected void RaiseOnMouseDown(short button, short shift, int x, int y){
546                         throw new NotImplementedException("COM/ActiveX support is not implemented");
547                 }
548
549                 [EditorBrowsable(EditorBrowsableState.Advanced)]
550                 protected void RaiseOnMouseDown(short button, short shift, float x, float y){
551                         throw new NotImplementedException("COM/ActiveX support is not implemented");
552                 }
553
554                 [EditorBrowsable(EditorBrowsableState.Advanced)]
555                 protected void RaiseOnMouseDown(object o1, object o2, object o3, object o4){
556                         throw new NotImplementedException("COM/ActiveX support is not implemented");
557                 }
558
559                 [EditorBrowsable(EditorBrowsableState.Advanced)]
560                 protected void RaiseOnMouseMove(short button, short shift, int x, int y){
561                         throw new NotImplementedException("COM/ActiveX support is not implemented");
562                 }
563
564                 [EditorBrowsable(EditorBrowsableState.Advanced)]
565                 protected void RaiseOnMouseMove(short button, short shift, float x, float y){
566                         throw new NotImplementedException("COM/ActiveX support is not implemented");
567                 }
568
569                 [EditorBrowsable(EditorBrowsableState.Advanced)]
570                 protected void RaiseOnMouseMove(object o1, object o2, object o3, object o4){
571                         throw new NotImplementedException("COM/ActiveX support is not implemented");
572                 }
573
574                 [EditorBrowsable(EditorBrowsableState.Advanced)]
575                 protected void RaiseOnMouseUp(short button, short shift, int x, int y){
576                         throw new NotImplementedException("COM/ActiveX support is not implemented");
577                 }
578
579                 [EditorBrowsable(EditorBrowsableState.Advanced)]
580                 protected void RaiseOnMouseUp(short button, short shift, float x, float y){
581                         throw new NotImplementedException("COM/ActiveX support is not implemented");
582                 }
583
584                 [EditorBrowsable(EditorBrowsableState.Advanced)]
585                 protected void RaiseOnMouseUp(object o1, object o2, object o3, object o4){
586                         throw new NotImplementedException("COM/ActiveX support is not implemented");
587                 }
588
589                 protected void SetAboutBoxDelegate(AxHost.AboutBoxDelegate d) {
590                         throw new NotImplementedException("COM/ActiveX support is not implemented");
591                 }
592                 
593                 protected override void SetBoundsCore(int x, int y, int width, int height, BoundsSpecified specified) {
594                         throw new NotImplementedException("COM/ActiveX support is not implemented");
595                 }
596                 
597                 protected override void SetVisibleCore(bool value) {
598                         throw new NotImplementedException("COM/ActiveX support is not implemented");
599                 }
600                 
601                 protected override void WndProc(ref Message m) {
602                         throw new NotImplementedException("COM/ActiveX support is not implemented");
603                 }
604                 #endregion      // Protected Instance Methods
605
606                 #region Private Instance Methods
607                 [EditorBrowsable(EditorBrowsableState.Never)]
608                 private bool ShouldSerializeContainingControl() {
609                         throw new NotImplementedException("COM/ActiveX support is not implemented");
610                 }
611                 #endregion      // Protected Instance Methods
612
613                 #region Events
614                 [Browsable(false)]
615                 [EditorBrowsable(EditorBrowsableState.Never)]
616                 public event EventHandler               BackColorChanged;
617
618                 [Browsable(false)]
619                 [EditorBrowsable(EditorBrowsableState.Never)]
620                 public event EventHandler               BackgroundImageChanged;
621
622                 [Browsable(false)]
623                 [EditorBrowsable(EditorBrowsableState.Never)]
624                 public event EventHandler               BindingContextChanged;
625
626                 [Browsable(false)]
627                 [EditorBrowsable(EditorBrowsableState.Never)]
628                 public event UICuesEventHandler         ChangeUICues;
629
630                 [Browsable(false)]
631                 [EditorBrowsable(EditorBrowsableState.Never)]
632                 public event EventHandler               Click;
633
634                 [Browsable(false)]
635                 [EditorBrowsable(EditorBrowsableState.Never)]
636                 public event EventHandler               ContextMenuChanged;
637
638                 [Browsable(false)]
639                 [EditorBrowsable(EditorBrowsableState.Never)]
640                 public event EventHandler               CursorChanged;
641
642                 [Browsable(false)]
643                 [EditorBrowsable(EditorBrowsableState.Never)]
644                 public event EventHandler               DoubleClick;
645
646                 [Browsable(false)]
647                 [EditorBrowsable(EditorBrowsableState.Never)]
648                 public event DragEventHandler           DragDrop;
649
650                 [Browsable(false)]
651                 [EditorBrowsable(EditorBrowsableState.Never)]
652                 public event DragEventHandler           DragEnter;
653
654                 [Browsable(false)]
655                 [EditorBrowsable(EditorBrowsableState.Never)]
656                 public event EventHandler               DragLeave;
657
658                 [Browsable(false)]
659                 [EditorBrowsable(EditorBrowsableState.Never)]
660                 public event DragEventHandler           DragOver;
661
662                 [Browsable(false)]
663                 [EditorBrowsable(EditorBrowsableState.Never)]
664                 public event EventHandler               EnabledChanged;
665
666                 [Browsable(false)]
667                 [EditorBrowsable(EditorBrowsableState.Never)]
668                 public event EventHandler               FontChanged;
669
670                 [Browsable(false)]
671                 [EditorBrowsable(EditorBrowsableState.Never)]
672                 public event EventHandler               ForeColorChanged;
673
674                 [Browsable(false)]
675                 [EditorBrowsable(EditorBrowsableState.Never)]
676                 public event GiveFeedbackEventHandler   GiveFeedback;
677
678                 [Browsable(false)]
679                 [EditorBrowsable(EditorBrowsableState.Never)]
680                 public event HelpEventHandler           HelpRequested;
681
682                 [Browsable(false)]
683                 [EditorBrowsable(EditorBrowsableState.Never)]
684                 public event EventHandler               ImeModeChanged;
685
686                 [Browsable(false)]
687                 [EditorBrowsable(EditorBrowsableState.Never)]
688                 public event KeyEventHandler            KeyDown;
689
690                 [Browsable(false)]
691                 [EditorBrowsable(EditorBrowsableState.Never)]
692                 public event KeyPressEventHandler       KeyPress;
693
694                 [Browsable(false)]
695                 [EditorBrowsable(EditorBrowsableState.Never)]
696                 public event KeyEventHandler            KeyUp;
697
698                 [Browsable(false)]
699                 [EditorBrowsable(EditorBrowsableState.Never)]
700                 public event LayoutEventHandler         Layout;
701
702                 [Browsable(false)]
703                 [EditorBrowsable(EditorBrowsableState.Never)]
704                 public event MouseEventHandler          MouseDown;
705
706                 [Browsable(false)]
707                 [EditorBrowsable(EditorBrowsableState.Never)]
708                 public event EventHandler               MouseEnter;
709
710                 [Browsable(false)]
711                 [EditorBrowsable(EditorBrowsableState.Never)]
712                 public event EventHandler               MouseHover;
713
714                 [Browsable(false)]
715                 [EditorBrowsable(EditorBrowsableState.Never)]
716                 public event EventHandler               MouseLeave;
717
718                 [Browsable(false)]
719                 [EditorBrowsable(EditorBrowsableState.Never)]
720                 public event MouseEventHandler          MouseMove;
721
722                 [Browsable(false)]
723                 [EditorBrowsable(EditorBrowsableState.Never)]
724                 public event MouseEventHandler          MouseUp;
725
726                 [Browsable(false)]
727                 [EditorBrowsable(EditorBrowsableState.Never)]
728                 public event MouseEventHandler          MouseWheel;
729
730                 [Browsable(false)]
731                 [EditorBrowsable(EditorBrowsableState.Never)]
732                 public event PaintEventHandler          Paint;
733
734                 [Browsable(false)]
735                 [EditorBrowsable(EditorBrowsableState.Never)]
736                 public event QueryAccessibilityHelpEventHandler QueryAccessibilityHelp;
737
738                 [Browsable(false)]
739                 [EditorBrowsable(EditorBrowsableState.Never)]
740                 public event QueryContinueDragEventHandler      QueryContinueDrag;
741
742                 [Browsable(false)]
743                 [EditorBrowsable(EditorBrowsableState.Never)]
744                 public event EventHandler               RightToLeftChanged;
745
746                 [Browsable(false)]
747                 [EditorBrowsable(EditorBrowsableState.Never)]
748                 public event EventHandler               StyleChanged;
749
750                 [Browsable(false)]
751                 [EditorBrowsable(EditorBrowsableState.Never)]
752                 public event EventHandler               TabIndexChanged;
753
754                 [Browsable(false)]
755                 [EditorBrowsable(EditorBrowsableState.Never)]
756                 public event EventHandler               TabStopChanged;
757
758                 [Browsable(false)]
759                 [EditorBrowsable(EditorBrowsableState.Never)]
760                 public event EventHandler               TextChanged;
761                 #endregion      // Events
762
763                 #region Delegates
764                 [Serializable]
765                 protected delegate void AboutBoxDelegate();
766                 #endregion      // Delegates
767
768                 #region Interfaces
769                 [EditorBrowsable(EditorBrowsableState.Advanced)]
770                 AttributeCollection ICustomTypeDescriptor.GetAttributes() {
771                         throw new NotImplementedException("COM/ActiveX support is not implemented");
772                 }
773                 
774                 [EditorBrowsable(EditorBrowsableState.Advanced)]
775                 string ICustomTypeDescriptor.GetClassName() {
776                         throw new NotImplementedException("COM/ActiveX support is not implemented");
777                 }
778                 
779                 [EditorBrowsable(EditorBrowsableState.Advanced)]
780                 string ICustomTypeDescriptor.GetComponentName() {
781                         throw new NotImplementedException("COM/ActiveX support is not implemented");
782                 }
783                 
784                 [EditorBrowsable(EditorBrowsableState.Advanced)]
785                 TypeConverter ICustomTypeDescriptor.GetConverter() {
786                         throw new NotImplementedException("COM/ActiveX support is not implemented");
787                 }
788                 
789                 [EditorBrowsable(EditorBrowsableState.Advanced)]
790                 EventDescriptor ICustomTypeDescriptor.GetDefaultEvent() {
791                         throw new NotImplementedException("COM/ActiveX support is not implemented");
792                 }
793                 
794                 [EditorBrowsable(EditorBrowsableState.Advanced)]
795                 PropertyDescriptor ICustomTypeDescriptor.GetDefaultProperty() {
796                         throw new NotImplementedException("COM/ActiveX support is not implemented");
797                 }
798                 
799                 [EditorBrowsable(EditorBrowsableState.Advanced)]
800                 object ICustomTypeDescriptor.GetEditor(Type editorBaseType) {
801                         throw new NotImplementedException("COM/ActiveX support is not implemented");
802                 }
803                 
804                 [EditorBrowsable(EditorBrowsableState.Advanced)]
805                 EventDescriptorCollection ICustomTypeDescriptor.GetEvents() {
806                         throw new NotImplementedException("COM/ActiveX support is not implemented");
807                 }
808                 
809                 [EditorBrowsable(EditorBrowsableState.Advanced)]
810                 EventDescriptorCollection ICustomTypeDescriptor.GetEvents(Attribute[] attributes) {
811                         throw new NotImplementedException("COM/ActiveX support is not implemented");
812                 }
813                 
814                 [EditorBrowsable(EditorBrowsableState.Advanced)]
815                 PropertyDescriptorCollection ICustomTypeDescriptor.GetProperties() {
816                         throw new NotImplementedException("COM/ActiveX support is not implemented");
817                 }
818                 
819                 [EditorBrowsable(EditorBrowsableState.Advanced)]
820                 PropertyDescriptorCollection ICustomTypeDescriptor.GetProperties(Attribute[] attributes) {
821                         throw new NotImplementedException("COM/ActiveX support is not implemented");
822                 }
823                 
824                 [EditorBrowsable(EditorBrowsableState.Advanced)]
825                 object ICustomTypeDescriptor.GetPropertyOwner(PropertyDescriptor pd) {
826                         throw new NotImplementedException("COM/ActiveX support is not implemented");
827                 }
828                 #endregion      // Interfaces
829         }
830 }