[Mono-bugs] [Bug 79540][Nor] Changed - [ScrollableControl] Different behavior than .Net when resizing

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sat Sep 30 22:39:17 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 unserkonig at gmail.com.

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

--- shadow/79540	2006-09-30 22:37:47.000000000 -0400
+++ shadow/79540.tmp.10304	2006-09-30 22:39:17.000000000 -0400
@@ -1,14 +1,14 @@
 Bug#: 79540
 Product: Mono: Class Libraries
 Version: 1.1
-OS: 
+OS: unknown
 OS Details: 
 Status: NEW   
 Resolution: 
-Severity: 
+Severity: Unknown
 Priority: Normal
 Component: Windows.Forms
 AssignedTo: toshok at ximian.com                            
 ReportedBy: unserkonig at gmail.com               
 QAContact: mono-bugs at ximian.com
 TargetMilestone: ---
@@ -17,6 +17,34 @@
 Summary: [ScrollableControl] Different behavior than .Net when resizing
 
 Get the sample, and run it. Try resizing the form to a smaller size. In
 .Net, when the form's size gets smaller and the button it is just about to
 be hidden, the location of the button changes. In Mono the location remains
 the same.
+
+------- Additional Comments From unserkonig at gmail.com  2006-09-30 22:39 -------
+// same sample of bug 79540
+using System;
+using System.Drawing;
+using System.Windows.Forms;
+
+public class Form1 : Form
+{
+        Button button1;
+        public Form1 ()
+        {
+                button1 = new Button();
+                button1.Location = new Point(40, 64);
+                button1.Size = new Size(112, 24);
+                button1.Text = "Hi";
+
+                AutoScroll = true;
+                Controls.Add (button1);
+
+        }
+
+        static void Main()
+        {
+                Application.Run(new Form1());
+        }
+}
+


More information about the mono-bugs mailing list