* roottypes.cs: Rename from tree.cs.
[mono.git] / mcs / class / Managed.Windows.Forms / System.Windows.Forms / Panel.cs
index 058c48da95c6b1148c7c5ccfce0f4852267e6901..092470403acb673d4e6e1226149da888254aaddb 100644 (file)
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
-// Copyright (c) 2004 Novell, Inc.
+// Copyright (c) 2004-2005 Novell, Inc.
 //
 // Authors:
 //     Jackson Harper (jackson@ximian.com)
 //
 
-// NOT COMPLETE
+// COMPLETE
 
 using System;
 using System.ComponentModel;
@@ -40,6 +40,7 @@ namespace System.Windows.Forms {
                public Panel () {
                        base.TabStop = false;
                        SetStyle(ControlStyles.Selectable, false);
+                       SetStyle (ControlStyles.SupportsTransparentBackColor, true);
                }
                #endregion      // Constructors & Destructors
 
@@ -47,13 +48,8 @@ namespace System.Windows.Forms {
                [DefaultValue(BorderStyle.None)]
                [DispId(-504)]
                public BorderStyle BorderStyle {
-                       get { return border_style; }
-                       set {
-                               if (value == border_style)
-                                       return;
-                               border_style = value;
-                               Refresh ();
-                       }
+                       get { return InternalBorderStyle; }
+                       set { InternalBorderStyle = value; }
                }
 
                [DefaultValue(false)]