[Mono-bugs] [Bug 79669][Maj] New - Setting Form.MaximizeBox to false hides all Controls on the form

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sun Oct 15 10:22:16 EDT 2006


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by kuba.brecka at gmail.com.

http://bugzilla.ximian.com/show_bug.cgi?id=79669

--- shadow/79669	2006-10-15 10:22:16.000000000 -0400
+++ shadow/79669.tmp.24559	2006-10-15 10:22:16.000000000 -0400
@@ -0,0 +1,59 @@
+Bug#: 79669
+Product: Mono: Class Libraries
+Version: 1.1
+OS: 
+OS Details: Windows XP SP1
+Status: NEW   
+Resolution: 
+Severity: Unknown
+Priority: Major
+Component: Windows.Forms
+AssignedTo: toshok at ximian.com                            
+ReportedBy: kuba.brecka at gmail.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Setting Form.MaximizeBox to false hides all Controls on the form
+
+On Windows XP SP1, using Mono 1.1.18 (new bug to this release).
+
+Run the following code. It should show two button, but it doesn't. The
+problem is caused by the marked line.
+
+
+Reproduce code:
+using System;
+using System.Windows.Forms;
+
+namespace MonoTest31
+{
+    class Form1 : Form
+    {
+        static void Main()
+        {
+            Application.Run(new Form1());
+        }
+
+        private Button button1, button2;
+
+        public Form1()
+        {
+            this.button1 = new Button();
+            this.button2 = new Button();
+
+            this.button1.Location = new System.Drawing.Point(10, 10);
+            this.button1.Size = new System.Drawing.Size(90, 30);
+            this.button1.Text = "button1";
+
+            this.button2.Location = new System.Drawing.Point(10, 50);
+            this.button2.Size = new System.Drawing.Size(90, 30);
+            this.button2.Text = "button2";
+
+            this.Controls.Add(this.button2);
+            this.Controls.Add(this.button1);
+
+            this.MaximizeBox = false; // THIS LINE CAUSES THE BUG
+        }
+    }
+}


More information about the mono-bugs mailing list