[Mono-bugs] [Bug 69737][Maj] New - MWF MessageBox not displaying a message box

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Sat, 20 Nov 2004 06:42:14 -0500 (EST)


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 paul@all-the-johnsons.co.uk.

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

--- shadow/69737	2004-11-20 06:42:14.000000000 -0500
+++ shadow/69737.tmp.9963	2004-11-20 06:42:14.000000000 -0500
@@ -0,0 +1,74 @@
+Bug#: 69737
+Product: Mono: Class Libraries
+Version: unspecified
+OS: 
+OS Details: Fedora Core 3 (rawhide)
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Major
+Component: Windows.Forms
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: paul@all-the-johnsons.co.uk               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: MWF MessageBox not displaying a message box
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+Using the test case below, MWF fails to display a message box and instead
+displays an error
+
+Steps to reproduce the problem:
+1. Compile the test case
+2. Run the test case
+3. 
+
+Actual Results:
+Mono gives the following error report
+
+Unhandled Exception: System.InvalidOperationException: Already visible
+forms cannot be displayed as a modal dialog. Set the Visible property to
+'false' prior to calling Form.ShowDialog.
+in <0x0008d> System.Windows.Forms.Form:ShowDialog
+(System.Windows.Forms.IWin32Window)
+in <0x0005b> (wrapper remoting-invoke-with-check)
+System.Windows.Forms.Form:ShowDialog (System.Windows.Forms.IWin32Window)
+in <0x00012> System.Windows.Forms.Form:ShowDialog ()
+in <0x00045> (wrapper remoting-invoke-with-check)
+System.Windows.Forms.Form:ShowDialog ()
+in <0x00038> MessageBoxForm:RunDialog ()
+in <0x00045> (wrapper remoting-invoke-with-check) MessageBoxForm:RunDialog ()
+in <0x0003c> System.Windows.Forms.MessageBox:Show
+(string,string,System.Windows.Forms.MessageBoxButtons,System.Windows.Forms.MessageBoxIcon)
+in <0x00058> Sum:Main (string[])
+
+Expected Results:
+A message box should open and display the sum of all of the even numbers
+between 2 and 100 with an information icon and OK button
+
+How often does this happen? 
+Always
+
+Additional Information:
+Using MWF checked out of svn at about 3pm GMT 19/11/04
+
+Test Case:
+using System;
+using System.Windows.Forms;
+
+class Sum
+{
+  static void Main(string [] args)
+  {
+    int sum = 0;
+    for (int number = 2; number <= 100; number += 2)
+      sum += number;
+
+    MessageBox.Show("The sum is " + sum, "Sum even integers from 2 to 100",
+		    MessageBoxButtons.OK, MessageBoxIcon.Information);
+  }
+}