[Mono-bugs] [Bug 81125][Nor] New - SizeFromClientSize should not be called from the Control.ClientSize setter

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Mon Mar 12 18:07:34 EDT 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=81125

--- shadow/81125	2007-03-12 17:07:34.000000000 -0500
+++ shadow/81125.tmp.12003	2007-03-12 17:07:34.000000000 -0500
@@ -0,0 +1,34 @@
+Bug#: 81125
+Product: Mono: Class Libraries
+Version: 1.0
+OS: other
+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: SizeFromClientSize should not be called from the Control.ClientSize setter
+
+Steps to reproduce the problem:
+
+using System;
+using System.Drawing;
+using System.Windows.Forms;
+class Test {
+	static void Main() {
+		new MyControl().ClientSize = Size.Empty;
+	}
+	class MyControl : Control {
+		protected override Size SizeFromClientSize(Size 
+clientSize) {
+			throw new Exception();
+		}
+	}
+}


More information about the mono-bugs mailing list