* Control.cs: ControlCollection.Count must be public. Fixed build of
[mono.git] / mcs / class / Managed.Windows.Forms / System.Windows.Forms / GroupBox.cs
index a52ae759ee91c021955e3e27e6fc1ae57ea7ac7d..fdb24c2487df8c05773df8bbd3fcce7a1d5492eb 100644 (file)
 //
 //
 
-// COMPLETE
-
 using System.Drawing;
 using System.ComponentModel;
 using System.ComponentModel.Design;
+using System.Runtime.InteropServices;
 
 namespace System.Windows.Forms
 {
        [DefaultProperty("Text")]
        [DefaultEvent("Enter")]
        [Designer ("System.Windows.Forms.Design.GroupBoxDesigner, " + Consts.AssemblySystem_Design, "System.ComponentModel.Design.IDesigner")]
+#if NET_2_0
+       [ClassInterface (ClassInterfaceType.AutoDispatch)]
+       [ComVisible (true)]
+#endif
        public class GroupBox : Control
        {
                private FlatStyle flat_style;
@@ -212,8 +215,8 @@ namespace System.Windows.Forms
                {
                        if (IsMnemonic(charCode, Text) == true) {
                                // Select item next in line in tab order
-                               if (this.parent != null) {
-                                       parent.SelectNextControl(this, true, false, true, false);
+                               if (this.Parent != null) {
+                                       Parent.SelectNextControl(this, true, false, true, false);
                                }
                                return true;
                        }
@@ -232,7 +235,7 @@ namespace System.Windows.Forms
                                
                #endregion Public Methods
 #if NET_2_0
-
+               [DefaultValue (false)]
                public bool UseCompatibleTextRendering {
                        get {
                                return use_compatible_text_rendering;