[Mono-bugs] [Bug 80574][Nor] New - Setting FormBorderStyle should not change Bounds
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Sun Jan 21 16:41:45 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=80574
--- shadow/80574 2007-01-21 16:41:45.000000000 -0500
+++ shadow/80574.tmp.32473 2007-01-21 16:41:45.000000000 -0500
@@ -0,0 +1,49 @@
+Bug#: 80574
+Product: Mono: Class Libraries
+Version: 1.2
+OS: Windows XP
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: Windows.Forms
+AssignedTo: toshok at ximian.com
+ReportedBy: georgegiolfan at yahoo.com
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Setting FormBorderStyle should not change Bounds
+
+Description of Problem:
+It seems that setting FormBorderStyle causes a Form to change Bounds.
+
+Steps to reproduce the problem:
+Compile and run the following program.
+using System.Drawing;
+using System.Windows.Forms;
+class TestForm : Form {
+ static void Main() {
+ Application.Run(new TestForm());
+ }
+ public TestForm() {
+ Rectangle BoundsBeforeBorderStyleChange = Bounds;
+ FormBorderStyle = FormBorderStyle.None;
+ MessageBox.Show((Bounds ==
+BoundsBeforeBorderStyleChange).ToString());
+ }
+}
+Actual Results:
+False.
+
+Expected Results:
+True.
+
+How often does this happen?
+Always (on the SVN version).
+
+Additional Information:
+I noticed the client size remains the same (it should not). The line
+this.Size = SizeFromClientSize (this.ClientSize);
+in the Form.FormBorderStyle setter looks suspicious.
More information about the mono-bugs
mailing list