[Mono-bugs] [Bug 80289][Nor] New - Control.Anchor does not seem to always work

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sun Dec 17 16:30:55 EST 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 georgegiolfan at yahoo.com.

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

--- shadow/80289	2006-12-17 16:30:55.000000000 -0500
+++ shadow/80289.tmp.20466	2006-12-17 16:30:55.000000000 -0500
@@ -0,0 +1,46 @@
+Bug#: 80289
+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: Control.Anchor does not seem to always work
+
+Description of Problem:
+Control.Anchor does not seem to work in this case.
+
+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() {
+        Button b = new Button();
+        Controls.Add(b);
+        ClientSize = b.Size;
+        b.Anchor = AnchorStyles.Right | AnchorStyles.Bottom;
+        Size = new Size(300, 300);
+    }
+}
+Actual Results:
+Button in top left corner.
+
+Expected Results:
+Button in bottom right corner.
+
+How often does this happen? 
+Always (on 1.2.2.1 and also when using the monocharge 20061217 version of 
+System.Windows.Forms.dll


More information about the mono-bugs mailing list