[Mono-bugs] [Bug 79370][Blo] Changed - TextBox crashes when width < 0

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Tue Sep 12 21:40:12 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=79370

--- shadow/79370	2006-09-11 18:53:31.000000000 -0400
+++ shadow/79370.tmp.26231	2006-09-12 21:40:12.000000000 -0400
@@ -84,6 +84,24 @@
 thats a .tar.gz file 
 
 ------- Additional Comments From monkey at jpobst.com  2006-09-11 18:53 -------
 Created an attachment (id=17650)
 A slightly simpler test case. (I hit this same error today.)
 
+
+------- Additional Comments From unserkonig at gmail.com  2006-09-12 21:40 -------
+RichTextBox also has this problem, so this is mostly a TextBoxBase issue.
+
+The problem appears when calculating the ClientSize in Hwnd.
+GetWindowRectangle (when trying to Set Bounds), specifically in the lines:
+
+if (border_style == FormBorderStyle.Fixed3D) {
+...
+   rect.Width += border_3D_size.Width * 2;
+
+The ThemeEngine.Border3DSize is always of Width = 2, so this could
+explain why the minimum size for avoiding the exception is Width>= 4
+
+I also noted that the CreateParams property appears to be different
+than that one in .Net. I don't know if this is the source of the
+problem, though.
+


More information about the mono-bugs mailing list