[Mono-bugs] [Bug 80460][Min] New - FlowLayoutPanel does not take into account AutoSizeMode
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Fri Jan 5 16:38:57 EST 2007
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 georgegiolfan at yahoo.com.
http://bugzilla.ximian.com/show_bug.cgi?id=80460
--- shadow/80460 2007-01-05 16:38:57.000000000 -0500
+++ shadow/80460.tmp.27305 2007-01-05 16:38:57.000000000 -0500
@@ -0,0 +1,36 @@
+Bug#: 80460
+Product: Mono: Class Libraries
+Version: 1.2
+OS: other
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Minor
+Component: Windows.Forms
+AssignedTo: toshok at ximian.com
+ReportedBy: georgegiolfan at yahoo.com
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: FlowLayoutPanel does not take into account AutoSizeMode
+
+Run this program on Microsoft .NET Framework with and without the
+AutoSizeMode line.
+using System.Drawing;
+using System.Windows.Forms;
+class TestForm : Form {
+ static void Main() {
+ Application.Run(new TestForm());
+ }
+ public TestForm() {
+ FlowLayoutPanel p = new FlowLayoutPanel();
+ p.BackColor = Color.Red;
+ p.AutoSize = true;
+ //This line changes the way the form looks.
+ p.AutoSizeMode = AutoSizeMode.GrowAndShrink;
+ p.Controls.AddRange(new Control[] { new Button(), new Button() });
+ Controls.Add(p);
+ }
+}
More information about the mono-bugs
mailing list