[Mono-bugs] [Bug 80621][Wis] New - Size.SizeFromClientSize should not be called in Control.Control()

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Thu Jan 25 15:04:59 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=80621

--- shadow/80621	2007-01-25 15:04:59.000000000 -0500
+++ shadow/80621.tmp.30560	2007-01-25 15:04:59.000000000 -0500
@@ -0,0 +1,33 @@
+Bug#: 80621
+Product: Mono: Class Libraries
+Version: 1.2
+OS: other
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: Windows.Forms
+AssignedTo: toshok at ximian.com                            
+ReportedBy: georgegiolfan at yahoo.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Size.SizeFromClientSize should not be called in Control.Control()
+
+Steps to reproduce the problem:
+using System.Diagnostics;
+using System.Drawing;
+using System.Windows.Forms;
+class Test {
+    static void Main() {
+        new MyControl();
+    }
+    class MyControl : Control {
+        protected override Size SizeFromClientSize(Size clientSize) {
+            Debug.Fail(null);
+            return Size.Empty;
+        }
+    }
+}


More information about the mono-bugs mailing list