[Mono-bugs] [Bug 78575][Nor] New - MessageBox text gets hidden by button when icon is specified

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sat Jun 3 23:26:27 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 braddabug at comcast.net.

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

--- shadow/78575	2006-06-03 23:26:27.000000000 -0400
+++ shadow/78575.tmp.2979	2006-06-03 23:26:27.000000000 -0400
@@ -0,0 +1,48 @@
+Bug#: 78575
+Product: Mono: Class Libraries
+Version: 1.1
+OS: 
+OS Details: Debian testing
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: Windows.Forms
+AssignedTo: peter at novonyx.com                            
+ReportedBy: braddabug at comcast.net               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: MessageBox text gets hidden by button when icon is specified
+
+When you specify an icon in MessageBox.Show() and have a lot of newlines in
+the text the bottom portion of the text is hidden by the button. Here's
+some minimal code to show the problem:
+
+using System;
+using System.Windows.Forms;
+
+class MyClass
+{
+	public static void Main()
+	{
+		// This message box works
+		MessageBox.Show("Blah!" + Environment.NewLine
+			+ "Blah!" + Environment.NewLine + "Blah!"
+			+ Environment.NewLine + "Blah!"
+			+ Environment.NewLine + "Blah!"
+			+ Environment.NewLine + "Blah!", "This message box is okay");
+		
+		// the text on this message box is hidden by the OK button
+		MessageBox.Show("Blah!" + Environment.NewLine
+			+ "Blah!" + Environment.NewLine + "Blah!"
+			+ Environment.NewLine + "Blah!"
+			+ Environment.NewLine + "Blah!"
+			+ Environment.NewLine + "Blah!", "This message box is bad!",
+			MessageBoxButtons.OK, MessageBoxIcon.Information);
+	}
+}
+
+The first message box without the icon works, but the second one does not.
+I've tested this with Mono 1.1.15.


More information about the mono-bugs mailing list