do not check order sequence if option /order was not used
[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 using System;
28 using System.ComponentModel;
29 using System.Drawing;
30 using System.IO;
31 using System.Runtime.InteropServices;
32 using System.Runtime.Serialization;
33
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)]
39         [ToolboxItem(false)]
40         [ClassInterface (ClassInterfaceType.AutoDispatch)]
41         [ComVisible (true)]
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                 [ComVisible (false)]
54                 public class AxComponentEditor : System.Windows.Forms.Design.WindowsFormsComponentEditor {
55                         public AxComponentEditor ()
56                         {
57                                 throw new NotImplementedException("COM/ActiveX support is not implemented");
58                         }
59
60                         public override bool EditComponent (ITypeDescriptorContext context, object obj, IWin32Window parent)
61                         {
62                                 throw new NotImplementedException("COM/ActiveX support is not implemented");
63                         }
64                 }
65                 #endregion      // AxHost.AxComponentEditor Class
66
67                 #region AxHost.ClsidAttribute
68                 [AttributeUsage(AttributeTargets.Class,Inherited=false)]
69                 public sealed class ClsidAttribute : Attribute {
70                         string clsid;
71
72                         public ClsidAttribute (string clsid)
73                         {
74                                 this.clsid = clsid;
75                         }
76
77                         public string Value {
78                                 get { return clsid; }
79                         }
80                 }
81                 #endregion AxHost.ClsidAttribute
82                 
83                 #region AxHost.ConnectionPointCookie
84                 public class ConnectionPointCookie {
85                         public ConnectionPointCookie (object source, object sink, Type eventInterface)
86                         {
87                                 throw new NotImplementedException("COM/ActiveX support is not implemented");
88                         }
89
90                         public void Disconnect ()
91                         {
92                                 throw new NotImplementedException("COM/ActiveX support is not implemented");
93                         }
94
95                         ~ConnectionPointCookie ()
96                         {
97                                 throw new NotImplementedException("COM/ActiveX support is not implemented");
98                         }
99                 }
100                 #endregion      // AxHost.ConnectionPointCookie
101                 
102                 #region AxHost.InvalidActiveXStateException  Class
103                 public class InvalidActiveXStateException : Exception {
104                         public InvalidActiveXStateException ()
105                         {
106                                 throw new NotImplementedException("COM/ActiveX support is not implemented");
107                         }
108
109                         public InvalidActiveXStateException (string name, ActiveXInvokeKind kind)
110                         {
111                                 throw new NotImplementedException("COM/ActiveX support is not implemented");
112                         }
113
114                         public override string ToString ()
115                         {
116                                 throw new NotImplementedException("COM/ActiveX support is not implemented");
117                         }
118                 }
119                 #endregion      // AxHost.InvalidActiveXStateException  Class
120                         
121                 #region AxHost.State Class
122                 [Serializable]
123                 [TypeConverter("System.ComponentModel.TypeConverter, " + Consts.AssemblySystem)]
124                 public class State : ISerializable {
125                         public State (Stream ms, int storageType, bool manualUpdate, string licKey)
126                         {
127                                 //throw new NotImplementedException("COM/ActiveX support is not implemented");
128                         }
129
130                         protected State (SerializationInfo info, StreamingContext context)
131                         {
132                         }
133
134                         void ISerializable.GetObjectData (SerializationInfo si,StreamingContext context)
135                         {
136                                 //throw new NotImplementedException("COM/ActiveX support is not implemented");
137                         }
138                 }
139                 #endregion      // AxHost.State Class
140
141                 #region AxHost.TypeLibraryTimeStampAttribute Class
142                 [AttributeUsage(AttributeTargets.Assembly, Inherited=false)]
143                 public sealed class TypeLibraryTimeStampAttribute : Attribute {
144                         public TypeLibraryTimeStampAttribute (string timestamp)
145                         {
146                                 throw new NotImplementedException("COM/ActiveX support is not implemented");
147                         }
148
149                         public DateTime Value {
150                                 get {
151                                         throw new NotImplementedException("COM/ActiveX support is not implemented");
152                                 }
153                         }
154                 }
155                 #endregion      // AxHost.TypeLibraryTimeStampAttribute Class
156
157                 #region AxHost.StateConverter Class
158                 public class StateConverter : System.ComponentModel.TypeConverter {
159                         public StateConverter ()
160                         {
161                                 throw new NotImplementedException("COM/ActiveX support is not implemented");
162                         }
163
164                         public override bool CanConvertFrom (ITypeDescriptorContext context, Type sourceType)
165                         {
166                                 throw new NotImplementedException("COM/ActiveX support is not implemented");
167                         }
168
169                         public override bool CanConvertTo (ITypeDescriptorContext context, Type destinationType)
170                         {
171                                 throw new NotImplementedException("COM/ActiveX support is not implemented");
172                         }
173
174                         public override object ConvertFrom (ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value)
175                         {
176                                 throw new NotImplementedException("COM/ActiveX support is not implemented");
177                         }
178
179                         public override object ConvertTo (ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value, Type destinationType)
180                         {
181                                 throw new NotImplementedException("COM/ActiveX support is not implemented");
182                         }
183                 }
184                 #endregion      // AxHost.StateConverter Class
185                 #endregion      // AxHost Subclasses
186
187                 //private int flags;
188                 //private Guid clsid;
189                 private AboutBoxDelegate aboutDelegate = null;
190                 private AxHost.State ocxState = null;
191
192                 #region Protected Constructors
193
194                 [MonoTODO]
195                 protected AxHost (string clsid) : this(clsid, 0)
196                 {
197
198                 }
199
200                 [MonoTODO]
201                 protected AxHost (string clsid, int flags)
202                 {
203                         //this.clsid = new Guid(clsid);
204                         //this.flags = flags;
205                 }
206                 #endregion      // Public Instance Properties
207
208                 #region Public Instance Properties
209                 [Browsable (false)]
210                 [EditorBrowsable (EditorBrowsableState.Never)]
211                 public override Color BackColor {
212                         get {
213                                 return base.BackColor;
214                         }
215                         set {
216                                 base.BackColor = value;
217                         }
218                 }
219                 
220                 [Browsable (false)]
221                 [EditorBrowsable (EditorBrowsableState.Never)]
222                 [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
223                 public override Image BackgroundImage {
224                         get {
225                                 return base.BackgroundImage;
226                         }
227
228                         set {
229                                 base.BackgroundImage = value;
230                         }
231                 }
232
233                 [Browsable (false)]
234                 [EditorBrowsable (EditorBrowsableState.Never)]
235                 [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
236                 public override ImageLayout BackgroundImageLayout {
237                         get {
238                                 return base.BackgroundImageLayout;
239                         }
240
241                         set {
242                                 base.BackgroundImageLayout = value;
243                         }
244                 }
245                 
246                 [Browsable (false)]
247                 [EditorBrowsable (EditorBrowsableState.Advanced)]
248                 [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
249                 public ContainerControl ContainingControl {
250                         get {
251                                 throw new NotImplementedException("COM/ActiveX support is not implemented");
252                         }
253
254                         set {
255                                 throw new NotImplementedException("COM/ActiveX support is not implemented");
256                         }
257                 }
258                 
259                 [Browsable (false)]
260                 [EditorBrowsable (EditorBrowsableState.Never)]
261                 public override ContextMenu ContextMenu {
262                         get {
263                                 return base.ContextMenu;
264                         }
265
266                         set {
267                                 base.ContextMenu = value;
268                         }
269                 }
270                 
271                 [Browsable (false)]
272                 [EditorBrowsable (EditorBrowsableState.Never)]
273                 public override Cursor Cursor {
274                         get {
275                                 return base.Cursor;
276                         }
277
278                         set {
279                                 base.Cursor = value;
280                         }
281                 }
282                 
283                 [Browsable (false)]
284                 [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
285                 [EditorBrowsable (EditorBrowsableState.Advanced)]
286                 public bool EditMode {
287                         get {
288                                 throw new NotImplementedException("COM/ActiveX support is not implemented");
289                         }
290                 }
291
292                 [Browsable (false)]
293                 [EditorBrowsable (EditorBrowsableState.Never)]
294                 public new virtual bool Enabled {
295                         get {
296                                 return base.Enabled;
297                         }
298
299                         set {
300                                 base.Enabled = value;
301                         }
302                 }
303                 
304                 [Browsable (false)]
305                 [EditorBrowsable (EditorBrowsableState.Never)]
306                 public override Font Font {
307                         get {
308                                 return base.Font;
309                         }
310
311                         set {
312                                 base.Font = value;
313                         }
314                 }
315                 
316                 [Browsable (false)]
317                 [EditorBrowsable (EditorBrowsableState.Never)]
318                 public override Color ForeColor {
319                         get { 
320                                 return base.ForeColor;
321                         }
322
323                         set {
324                                 base.ForeColor = value;
325                         }
326                 }
327                 
328                 [Browsable (false)]
329                 [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
330                 [EditorBrowsable (EditorBrowsableState.Advanced)]
331                 public bool HasAboutBox {
332                         get {
333                                 return aboutDelegate != null;
334                         }
335                 }
336
337                 [Browsable (false)]
338                 [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
339                 [EditorBrowsable (EditorBrowsableState.Never)]
340                 public new ImeMode ImeMode {
341                         get { 
342                                 return base.ImeMode;
343                         }
344                         set { 
345                                 base.ImeMode = value;
346                         }
347                 }
348                 
349                 [Browsable (false)]
350                 [DefaultValue (null)]
351                 [EditorBrowsable (EditorBrowsableState.Advanced)]
352                 [RefreshProperties (RefreshProperties.All)]
353                 public AxHost.State OcxState {
354                         get {
355                                 return ocxState;
356                         }
357
358                         set {
359                                 if (ocxState == value || value == null)
360                                 {
361                                         return;
362                                 }
363                                 this.ocxState = value;
364                         }
365                 }
366                 
367                 [Browsable (false)]
368                 [EditorBrowsable (EditorBrowsableState.Never)]
369                 [Localizable (true)]
370                 public new virtual bool RightToLeft {
371                         get {
372                                 return base.RightToLeft == System.Windows.Forms.RightToLeft.Yes;
373                         }
374
375                         set {
376                                 base.RightToLeft = (value ? System.Windows.Forms.RightToLeft.Yes : 
377                                                        System.Windows.Forms.RightToLeft.No);
378                         }
379                 }
380                 
381                 public override ISite Site {
382                         set {
383                                 throw new NotImplementedException("COM/ActiveX support is not implemented");
384                         }
385                 }
386
387                 [Browsable (false)]
388                 [EditorBrowsable (EditorBrowsableState.Never)]
389                 public override string Text {
390                         get { return base.Text; }
391                         set { base.Text = value; }
392                 }
393                 #endregion      // Protected Constructors
394                 
395                 #region Protected Instance Properties
396                 protected override CreateParams CreateParams {
397                         get { return base.CreateParams; }
398                 }
399                 
400                 protected override Size DefaultSize {
401                         get {
402                                 return new Size (75, 23);
403                         }
404                 }
405                 #endregion      // Protected Instance Properties
406
407                 #region Protected Static Methods
408                 [CLSCompliant(false)]
409                 [EditorBrowsable (EditorBrowsableState.Advanced)]
410                 protected static Color GetColorFromOleColor (uint color)
411                 {
412                         throw new NotImplementedException("COM/ActiveX support is not implemented"); 
413                 }
414
415                 [EditorBrowsable (EditorBrowsableState.Advanced)]
416                 protected static Font GetFontFromIFont (object font)
417                 {
418                         throw new NotImplementedException("COM/ActiveX support is not implemented"); 
419                 }
420
421                 [EditorBrowsable (EditorBrowsableState.Advanced)]
422                 protected static Font GetFontFromIFontDisp (object font)
423                 {
424                         throw new NotImplementedException("COM/ActiveX support is not implemented"); 
425                 }
426
427                 [EditorBrowsable (EditorBrowsableState.Advanced)]
428                 protected static object GetIFontDispFromFont (Font font)
429                 {
430                         throw new NotImplementedException("COM/ActiveX support is not implemented"); 
431                 }
432
433                 [EditorBrowsable (EditorBrowsableState.Advanced)]
434                 protected static object GetIFontFromFont (Font font)
435                 {
436                         throw new NotImplementedException("COM/ActiveX support is not implemented"); 
437                 }
438
439                 [EditorBrowsable (EditorBrowsableState.Advanced)]
440                 protected static object GetIPictureDispFromPicture (Image image)
441                 {
442                         throw new NotImplementedException("COM/ActiveX support is not implemented"); 
443                 }
444
445                 [EditorBrowsable (EditorBrowsableState.Advanced)]
446                 protected static object GetIPictureFromCursor (Cursor cursor)
447                 {
448                         throw new NotImplementedException("COM/ActiveX support is not implemented"); 
449                 }
450
451                 [EditorBrowsable (EditorBrowsableState.Advanced)]
452                 protected static object GetIPictureFromPicture (Image image)
453                 {
454                         throw new NotImplementedException("COM/ActiveX support is not implemented"); 
455                 }
456
457                 [EditorBrowsable (EditorBrowsableState.Advanced)]
458                 protected static double GetOADateFromTime (DateTime time)
459                 {
460                         throw new NotImplementedException("COM/ActiveX support is not implemented"); 
461                 }
462
463                 [CLSCompliant(false)]
464                 [EditorBrowsable (EditorBrowsableState.Advanced)]
465                 protected static uint GetOleColorFromColor (Color color)
466                 {
467                         throw new NotImplementedException("COM/ActiveX support is not implemented"); 
468                 }
469
470                 [EditorBrowsable (EditorBrowsableState.Advanced)]
471                 protected static Image GetPictureFromIPicture (object picture)
472                 {
473                         throw new NotImplementedException("COM/ActiveX support is not implemented"); 
474                 }
475
476                 [EditorBrowsable (EditorBrowsableState.Advanced)]
477                 protected static Image GetPictureFromIPictureDisp (object picture)
478                 {
479                         throw new NotImplementedException("COM/ActiveX support is not implemented"); 
480                 }
481
482                 [EditorBrowsable (EditorBrowsableState.Advanced)]
483                 protected static DateTime GetTimeFromOADate (double date)
484                 {
485                         throw new NotImplementedException("COM/ActiveX support is not implemented"); 
486                 }
487                 #endregion      // Protected Static Methods
488
489                 #region Public Instance Methods
490                 [EditorBrowsable (EditorBrowsableState.Advanced)]
491                 [MonoTODO]
492                 public void BeginInit ()
493                 {
494                 }
495                 
496                 public void DoVerb (int verb)
497                 {
498                         throw new NotImplementedException("COM/ActiveX support is not implemented");
499                 }
500
501                 [EditorBrowsable (EditorBrowsableState.Advanced)]
502                 [MonoTODO]
503                 public void EndInit ()
504                 {
505                 }
506
507                 [EditorBrowsable (EditorBrowsableState.Advanced)]
508                 public object GetOcx ()
509                 {
510                         throw new NotImplementedException("COM/ActiveX support is not implemented");
511                 }
512                 
513                 public bool HasPropertyPages ()
514                 {
515                         throw new NotImplementedException("COM/ActiveX support is not implemented");
516                 }
517                 
518                 [EditorBrowsable (EditorBrowsableState.Advanced)]
519                 public void InvokeEditMode ()
520                 {
521                         throw new NotImplementedException("COM/ActiveX support is not implemented");
522                 }
523
524                 [EditorBrowsable (EditorBrowsableState.Advanced)]
525                 public void MakeDirty ()
526                 {
527                         throw new NotImplementedException("COM/ActiveX support is not implemented");
528                 }
529
530                 public override bool PreProcessMessage (ref Message msg)
531                 {
532                         throw new NotImplementedException("COM/ActiveX support is not implemented");
533                 }
534
535                 public void ShowAboutBox ()
536                 {
537                         if (aboutDelegate != null)
538                                 this.aboutDelegate();
539                 }
540                 
541                 public void ShowPropertyPages ()
542                 {
543                         throw new NotImplementedException("COM/ActiveX support is not implemented");
544                 }
545                 
546                 public void ShowPropertyPages (Control control)
547                 {
548                         throw new NotImplementedException("COM/ActiveX support is not implemented");
549                 }
550                 #endregion      // Public Instance Methods
551
552                 #region Protected Instance Methods
553                 protected virtual void AttachInterfaces ()
554                 {
555                         throw new NotImplementedException("COM/ActiveX support is not implemented");
556                 }
557                 
558                 protected override void CreateHandle ()
559                 {
560                         throw new NotImplementedException("COM/ActiveX support is not implemented");
561                 }
562
563                 protected virtual object CreateInstanceCore (Guid clsid)
564                 {
565                         throw new NotImplementedException("COM/ActiveX support is not implemented");
566                 }
567
568                 [EditorBrowsable (EditorBrowsableState.Advanced)]
569                 protected virtual void CreateSink ()
570                 {
571                         throw new NotImplementedException("COM/ActiveX support is not implemented");
572                 }
573                 
574                 protected override void DestroyHandle ()
575                 {
576                         throw new NotImplementedException("COM/ActiveX support is not implemented");
577                 }
578
579                 [EditorBrowsable (EditorBrowsableState.Advanced)]
580                 protected virtual void DetachSink ()
581                 {
582                         throw new NotImplementedException("COM/ActiveX support is not implemented");
583                 }
584
585                 protected override void Dispose (bool disposing)
586                 {
587                         throw new NotImplementedException("COM/ActiveX support is not implemented");
588                 }
589
590                 [EditorBrowsable (EditorBrowsableState.Never)]
591                 public new void DrawToBitmap (Bitmap bitmap, Rectangle targetBounds)
592                 {
593                         throw new NotImplementedException("COM/ActiveX support is not implemented");
594                 }
595
596                 [EditorBrowsable (EditorBrowsableState.Advanced)]
597                 protected new virtual Rectangle GetScaledBounds (Rectangle bounds, SizeF factor, BoundsSpecified specified)
598                 {
599                         throw new NotImplementedException("COM/ActiveX support is not implemented");
600                 }
601
602                 protected override bool IsInputChar (char charCode)
603                 {
604                         throw new NotImplementedException("COM/ActiveX support is not implemented");
605                 }
606                 
607                 protected override void OnBackColorChanged (EventArgs e)
608                 {
609                         base.OnBackColorChanged(e);
610                 }
611                 
612                 protected override void OnFontChanged (EventArgs e)
613                 {
614                         base.OnFontChanged(e);
615                 }
616                 
617                 protected override void OnForeColorChanged (EventArgs e)
618                 {
619                         base.OnForeColorChanged(e);
620                 }
621                 
622                 protected override void OnHandleCreated (EventArgs e)
623                 {
624                         throw new NotImplementedException("COM/ActiveX support is not implemented");
625                 }
626
627                 protected virtual void OnInPlaceActive ()
628                 {
629                         throw new NotImplementedException("COM/ActiveX support is not implemented");
630                 }
631                 
632                 [EditorBrowsable (EditorBrowsableState.Advanced)]
633                 protected override void OnLostFocus (EventArgs e)
634                 {
635                         throw new NotImplementedException("COM/ActiveX support is not implemented");
636                 }
637                 
638                 protected override bool ProcessDialogKey (Keys keyData)
639                 {
640                         return base.ProcessDialogKey(keyData);
641                 }
642
643                 protected override bool ProcessMnemonic (char charCode)
644                 {
645                         throw new NotImplementedException("COM/ActiveX support is not implemented");
646                 }
647
648                 [EditorBrowsable (EditorBrowsableState.Advanced)]
649                 protected bool PropsValid ()
650                 {
651                         throw new NotImplementedException("COM/ActiveX support is not implemented"); 
652                 }
653
654                 [EditorBrowsable (EditorBrowsableState.Advanced)]
655                 protected void RaiseOnMouseDown (short button, short shift, int x, int y)
656                 {
657                         throw new NotImplementedException("COM/ActiveX support is not implemented");
658                 }
659
660                 [EditorBrowsable (EditorBrowsableState.Advanced)]
661                 protected void RaiseOnMouseDown (short button, short shift, float x, float y)
662                 {
663                         throw new NotImplementedException("COM/ActiveX support is not implemented");
664                 }
665
666                 [EditorBrowsable (EditorBrowsableState.Advanced)]
667                 protected void RaiseOnMouseDown (object o1, object o2, object o3, object o4)
668                 {
669                         throw new NotImplementedException("COM/ActiveX support is not implemented");
670                 }
671
672                 [EditorBrowsable (EditorBrowsableState.Advanced)]
673                 protected void RaiseOnMouseMove (short button, short shift, int x, int y)
674                 {
675                         throw new NotImplementedException("COM/ActiveX support is not implemented");
676                 }
677
678                 [EditorBrowsable (EditorBrowsableState.Advanced)]
679                 protected void RaiseOnMouseMove (short button, short shift, float x, float y)
680                 {
681                         throw new NotImplementedException("COM/ActiveX support is not implemented");
682                 }
683
684                 [EditorBrowsable (EditorBrowsableState.Advanced)]
685                 protected void RaiseOnMouseMove (object o1, object o2, object o3, object o4)
686                 {
687                         throw new NotImplementedException("COM/ActiveX support is not implemented");
688                 }
689
690                 [EditorBrowsable (EditorBrowsableState.Advanced)]
691                 protected void RaiseOnMouseUp (short button, short shift, int x, int y)
692                 {
693                         throw new NotImplementedException("COM/ActiveX support is not implemented");
694                 }
695
696                 [EditorBrowsable (EditorBrowsableState.Advanced)]
697                 protected void RaiseOnMouseUp (short button, short shift, float x, float y)
698                 {
699                         throw new NotImplementedException("COM/ActiveX support is not implemented");
700                 }
701
702                 [EditorBrowsable (EditorBrowsableState.Advanced)]
703                 protected void RaiseOnMouseUp (object o1, object o2, object o3, object o4)
704                 {
705                         throw new NotImplementedException("COM/ActiveX support is not implemented");
706                 }
707
708                 protected void SetAboutBoxDelegate (AxHost.AboutBoxDelegate d)
709                 {
710                         this.aboutDelegate = d;
711                 }
712                 
713                 protected override void SetBoundsCore (int x, int y, int width, int height, BoundsSpecified specified)
714                 {
715                         base.SetBoundsCore(x, y, width, height, specified);
716                 }
717                 
718                 protected override void SetVisibleCore (bool value)
719                 {
720                         throw new NotImplementedException("COM/ActiveX support is not implemented");
721                 }
722                 
723                 protected override void WndProc (ref Message m)
724                 {
725                         throw new NotImplementedException("COM/ActiveX support is not implemented");
726                 }
727                 #endregion      // Protected Instance Methods
728
729                 #region Events
730                 [Browsable (false)]
731                 [EditorBrowsable (EditorBrowsableState.Never)]
732                 public new event EventHandler BackColorChanged {
733                         add { throw new NotSupportedException("BackColorChanged"); }
734                         remove { }
735                 }
736
737                 [Browsable (false)]
738                 [EditorBrowsable (EditorBrowsableState.Never)]
739                 public new event EventHandler BackgroundImageChanged {
740                         add { throw new NotSupportedException("BackgroundImageChanged"); }
741                         remove { }
742                 }
743
744                 [Browsable (false)]
745                 [EditorBrowsable (EditorBrowsableState.Never)]
746                 public new event EventHandler BindingContextChanged {
747                         add { throw new NotSupportedException("BackgroundImageChanged"); }
748                         remove { }
749                 }
750
751                 [Browsable (false)]
752                 [EditorBrowsable (EditorBrowsableState.Never)]
753                 public new event UICuesEventHandler ChangeUICues {
754                         add { throw new NotSupportedException("ChangeUICues"); }
755                         remove { }
756                 }
757
758                 [Browsable (false)]
759                 [EditorBrowsable (EditorBrowsableState.Never)]
760                 public new event EventHandler Click {
761                         add { throw new NotSupportedException("Click"); }
762                         remove { }
763                 }
764
765                 [Browsable (false)]
766                 [EditorBrowsable (EditorBrowsableState.Never)]
767                 public new event EventHandler ContextMenuChanged {
768                         add { throw new NotSupportedException("ContextMenuChanged"); }
769                         remove { }
770                 }
771         
772                 [Browsable (false)]
773                 [EditorBrowsable (EditorBrowsableState.Never)]
774                 public new event EventHandler CursorChanged {
775                         add { throw new NotSupportedException("CursorChanged"); }
776                         remove { }
777                 }
778
779                 [Browsable (false)]
780                 [EditorBrowsable (EditorBrowsableState.Never)]
781                 public new event EventHandler DoubleClick {
782                         add { throw new NotSupportedException("DoubleClick"); }
783                         remove { }
784                 }
785
786                 [Browsable (false)]
787                 [EditorBrowsable (EditorBrowsableState.Never)]
788                 public new event DragEventHandler DragDrop {
789                         add { throw new NotSupportedException("DragDrop"); }
790                         remove { }
791                 }
792
793                 [Browsable (false)]
794                 [EditorBrowsable (EditorBrowsableState.Never)]
795                 public new event DragEventHandler DragEnter {
796                         add { throw new NotSupportedException("DragEnter"); }
797                         remove { }
798                 }
799
800                 [Browsable (false)]
801                 [EditorBrowsable (EditorBrowsableState.Never)]
802                 public new event EventHandler DragLeave {
803                         add { throw new NotSupportedException("DragLeave"); }
804                         remove { }
805                 }
806
807                 [Browsable (false)]
808                 [EditorBrowsable (EditorBrowsableState.Never)]
809                 public new event DragEventHandler DragOver {
810                         add { throw new NotSupportedException("DragOver"); }
811                         remove { }
812                 }
813
814                 [Browsable (false)]
815                 [EditorBrowsable (EditorBrowsableState.Never)]
816                 public new event EventHandler EnabledChanged {
817                         add { throw new NotSupportedException("EnabledChanged"); }
818                         remove { }
819                 }
820
821                 [Browsable (false)]
822                 [EditorBrowsable (EditorBrowsableState.Never)]
823                 public new event EventHandler FontChanged {
824                         add { throw new NotSupportedException("FontChanged"); }
825                         remove { }
826                 }
827
828                 [Browsable (false)]
829                 [EditorBrowsable (EditorBrowsableState.Never)]
830                 public new event EventHandler ForeColorChanged {
831                         add { throw new NotSupportedException("ForeColorChanged"); }
832                         remove { }
833                 }
834
835                 [Browsable (false)]
836                 [EditorBrowsable (EditorBrowsableState.Never)]
837                 public new event GiveFeedbackEventHandler GiveFeedback {
838                         add { throw new NotSupportedException("GiveFeedback"); }
839                         remove { }
840                 }
841
842                 [Browsable (false)]
843                 [EditorBrowsable (EditorBrowsableState.Never)]
844                 public new event HelpEventHandler HelpRequested {
845                         add { throw new NotSupportedException("HelpRequested"); }
846                         remove { }
847                 }
848
849                 [Browsable (false)]
850                 [EditorBrowsable (EditorBrowsableState.Never)]
851                 public new event EventHandler ImeModeChanged {
852                         add { throw new NotSupportedException("ImeModeChanged"); }
853                         remove { }
854                 }
855
856                 [Browsable (false)]
857                 [EditorBrowsable (EditorBrowsableState.Never)]
858                 public new event KeyEventHandler KeyDown {
859                         add { throw new NotSupportedException("KeyDown"); }
860                         remove { }
861                 }
862
863                 [Browsable (false)]
864                 [EditorBrowsable (EditorBrowsableState.Never)]
865                 public new event KeyPressEventHandler KeyPress {
866                         add { throw new NotSupportedException("KeyPress"); }
867                         remove { }
868                 }
869
870                 [Browsable (false)]
871                 [EditorBrowsable (EditorBrowsableState.Never)]
872                 public new event KeyEventHandler KeyUp {
873                         add { throw new NotSupportedException("KeyUp"); }
874                         remove { }
875                 }
876
877                 [Browsable (false)]
878                 [EditorBrowsable (EditorBrowsableState.Never)]
879                 public new event LayoutEventHandler Layout {
880                         add { throw new NotSupportedException("Layout"); }
881                         remove { }
882                 }
883
884                 [Browsable (false)]
885                 [EditorBrowsable (EditorBrowsableState.Never)]
886                 public new event MouseEventHandler MouseDown {
887                         add { throw new NotSupportedException("MouseDown"); }
888                         remove { }
889                 }
890
891                 [Browsable (false)]
892                 [EditorBrowsable (EditorBrowsableState.Never)]
893                 public new event EventHandler MouseEnter {
894                         add { throw new NotSupportedException("MouseEnter"); }
895                         remove { }
896                 }
897
898                 [Browsable (false)]
899                 [EditorBrowsable (EditorBrowsableState.Never)]
900                 public new event EventHandler MouseHover {
901                         add { throw new NotSupportedException("MouseHover"); }
902                         remove { }
903                 }
904
905                 [Browsable (false)]
906                 [EditorBrowsable (EditorBrowsableState.Never)]
907                 public new event EventHandler MouseLeave {
908                         add { throw new NotSupportedException("MouseLeave"); }
909                         remove { }
910                 }
911
912                 [Browsable (false)]
913                 [EditorBrowsable (EditorBrowsableState.Never)]
914                 public new event MouseEventHandler MouseMove {
915                         add { throw new NotSupportedException("MouseMove"); }
916                         remove { }
917                 }
918
919                 [Browsable (false)]
920                 [EditorBrowsable (EditorBrowsableState.Never)]
921                 public new event MouseEventHandler MouseUp {
922                         add { throw new NotSupportedException("MouseUp"); }
923                         remove { }
924                 }
925
926                 [Browsable (false)]
927                 [EditorBrowsable (EditorBrowsableState.Never)]
928                 public new event MouseEventHandler MouseWheel {
929                         add { throw new NotSupportedException("MouseWheel"); }
930                         remove { }
931                 }
932
933                 [Browsable (false)]
934                 [EditorBrowsable (EditorBrowsableState.Never)]
935                 public new event PaintEventHandler Paint {
936                         add { throw new NotSupportedException("Paint"); }
937                         remove { }
938                 }
939
940                 [Browsable (false)]
941                 [EditorBrowsable (EditorBrowsableState.Never)]
942                 public new event QueryAccessibilityHelpEventHandler QueryAccessibilityHelp {
943                         add { throw new NotSupportedException("QueryAccessibilityHelp"); }
944                         remove { }
945                 }
946
947                 [Browsable (false)]
948                 [EditorBrowsable (EditorBrowsableState.Never)]
949                 public new event QueryContinueDragEventHandler QueryContinueDrag {
950                         add { throw new NotSupportedException("QueryContinueDrag"); }
951                         remove { }
952                 }
953
954                 [Browsable (false)]
955                 [EditorBrowsable (EditorBrowsableState.Never)]
956                 public new event EventHandler RightToLeftChanged {
957                         add { throw new NotSupportedException("RightToLeftChanged"); }
958                         remove { }
959                 }
960
961                 [Browsable (false)]
962                 [EditorBrowsable (EditorBrowsableState.Never)]
963                 public new event EventHandler StyleChanged {
964                         add { throw new NotSupportedException("StyleChanged"); }
965                         remove { }
966                 }
967
968                 [Browsable (false)]
969                 [EditorBrowsable (EditorBrowsableState.Never)]
970                 public new event EventHandler BackgroundImageLayoutChanged {
971                         add { throw new NotSupportedException("BackgroundImageChanged"); }
972                         remove { }
973                 }
974
975                 [Browsable (false)]
976                 [EditorBrowsable (EditorBrowsableState.Never)]
977                 public new event EventHandler MouseClick {
978                         add { throw new NotSupportedException("BackgroundImMouseClickageChanged"); }
979                         remove { }
980                 }
981
982                 [Browsable (false)]
983                 [EditorBrowsable (EditorBrowsableState.Never)]
984                 public new event EventHandler MouseDoubleClick {
985                         add { throw new NotSupportedException("MouseDoubleClick"); }
986                         remove { }
987                 }
988
989                 [Browsable (false)]
990                 [EditorBrowsable (EditorBrowsableState.Never)]
991                 public new event EventHandler TextChanged {
992                         add { throw new NotSupportedException("TextChanged"); }
993                         remove { }
994                 }
995                 #endregion      // Events
996
997                 #region Delegates
998                 protected delegate void AboutBoxDelegate ();
999                 #endregion      // Delegates
1000
1001                 #region Interfaces
1002                 [EditorBrowsable (EditorBrowsableState.Advanced)]
1003                 AttributeCollection ICustomTypeDescriptor.GetAttributes ()
1004                 {
1005                         throw new NotImplementedException("COM/ActiveX support is not implemented");
1006                 }
1007                 
1008                 [EditorBrowsable (EditorBrowsableState.Advanced)]
1009                 string ICustomTypeDescriptor.GetClassName ()
1010                 {
1011                         throw new NotImplementedException("COM/ActiveX support is not implemented");
1012                 }
1013                 
1014                 [EditorBrowsable (EditorBrowsableState.Advanced)]
1015                 string ICustomTypeDescriptor.GetComponentName ()
1016                 {
1017                         throw new NotImplementedException("COM/ActiveX support is not implemented");
1018                 }
1019                 
1020                 [EditorBrowsable (EditorBrowsableState.Advanced)]
1021                 TypeConverter ICustomTypeDescriptor.GetConverter ()
1022                 {
1023                         throw new NotImplementedException("COM/ActiveX support is not implemented");
1024                 }
1025                 
1026                 [EditorBrowsable (EditorBrowsableState.Advanced)]
1027                 EventDescriptor ICustomTypeDescriptor.GetDefaultEvent ()
1028                 {
1029                         throw new NotImplementedException("COM/ActiveX support is not implemented");
1030                 }
1031                 
1032                 [EditorBrowsable (EditorBrowsableState.Advanced)]
1033                 PropertyDescriptor ICustomTypeDescriptor.GetDefaultProperty ()
1034                 {
1035                         throw new NotImplementedException("COM/ActiveX support is not implemented");
1036                 }
1037                 
1038                 [EditorBrowsable (EditorBrowsableState.Advanced)]
1039                 object ICustomTypeDescriptor.GetEditor (Type editorBaseType)
1040                 {
1041                         throw new NotImplementedException("COM/ActiveX support is not implemented");
1042                 }
1043                 
1044                 [EditorBrowsable (EditorBrowsableState.Advanced)]
1045                 EventDescriptorCollection ICustomTypeDescriptor.GetEvents ()
1046                 {
1047                         throw new NotImplementedException("COM/ActiveX support is not implemented");
1048                 }
1049                 
1050                 [EditorBrowsable (EditorBrowsableState.Advanced)]
1051                 EventDescriptorCollection ICustomTypeDescriptor.GetEvents (Attribute[] attributes)
1052                 {
1053                         throw new NotImplementedException("COM/ActiveX support is not implemented");
1054                 }
1055                 
1056                 [EditorBrowsable (EditorBrowsableState.Advanced)]
1057                 PropertyDescriptorCollection ICustomTypeDescriptor.GetProperties ()
1058                 {
1059                         throw new NotImplementedException("COM/ActiveX support is not implemented");
1060                 }
1061                 
1062                 [EditorBrowsable (EditorBrowsableState.Advanced)]
1063                 PropertyDescriptorCollection ICustomTypeDescriptor.GetProperties (Attribute[] attributes)
1064                 {
1065                         throw new NotImplementedException("COM/ActiveX support is not implemented");
1066                 }
1067                 
1068                 [EditorBrowsable (EditorBrowsableState.Advanced)]
1069                 object ICustomTypeDescriptor.GetPropertyOwner (PropertyDescriptor pd)
1070                 {
1071                         throw new NotImplementedException("COM/ActiveX support is not implemented");
1072                 }
1073                 #endregion      // Interfaces
1074         }
1075 }