[Mono-bugs] [Bug 78697][Min] New - Form.Scale not working when WindowState = Maximized

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sat Jun 24 06:42:32 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=78697

--- shadow/78697	2006-06-24 06:42:32.000000000 -0400
+++ shadow/78697.tmp.17148	2006-06-24 06:42:32.000000000 -0400
@@ -0,0 +1,51 @@
+Bug#: 78697
+Product: Mono: Class Libraries
+Version: 1.1
+OS: unknown
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Minor
+Component: Windows.Forms
+AssignedTo: peter at novonyx.com                            
+ReportedBy: kuba.brecka at gmail.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Form.Scale not working when WindowState = Maximized
+
+Description of Problem:
+This is the reproduce code. If you set WindowState to Maximized and then
+call Scale(), nothing happens. If you first call Scale and then maximize
+the form, it works fine.
+
+using System;
+using System.Drawing;
+using System.Windows.Forms;
+
+namespace MonoTest4
+{
+    public class Form1 : Form
+    {
+        static void Main()
+        {
+            Application.Run(new Form1());
+        }
+
+        public Form1()
+        {
+            Size = new Size(150, 150);
+            Button B = new Button();
+            B.Size = new Size(100, 100);
+            B.Location = new Point(10, 10);
+            B.Text = "button";
+            Controls.Add(B);
+
+            WindowState = FormWindowState.Maximized;
+
+            Scale(3.0f);
+        }
+    }
+}


More information about the mono-bugs mailing list