[Mono-bugs] [Bug 80775][Cos] New - Modal forms on Mono/Windows do not behave exactly like those on MS .NET

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Fri Feb 9 17:26:42 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=80775

--- shadow/80775	2007-02-09 17:26:42.000000000 -0500
+++ shadow/80775.tmp.4108	2007-02-09 17:26:42.000000000 -0500
@@ -0,0 +1,55 @@
+Bug#: 80775
+Product: Mono: Class Libraries
+Version: 1.2
+OS: Windows XP
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Cosmetic
+Component: Windows.Forms
+AssignedTo: toshok at ximian.com                            
+ReportedBy: georgegiolfan at yahoo.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Modal forms on Mono/Windows do not behave exactly like those on MS .NET
+
+Description of Problem:
+If you call ShowDialog(IWin32Window) on a Form, the Form passed as 
+parameter to ShowDialog can still be displayed over the modal Form, the 
+modal Form's title bar does not flash when you click the owner Form, etc.
+
+Steps to reproduce the problem:
+1. Compile and run the following program.
+using System;
+using System.Windows.Forms;
+class TestForm : Form {
+    static void Main() {
+        Application.Run(new TestForm());
+    }
+    public TestForm() {
+        Text = "Owner";
+    }
+    protected override void OnShown(EventArgs e) {
+        base.OnShown(e);
+        Form f = new Form();
+        f.Text = "Modal";
+        f.ShowDialog(this);
+    }
+}
+2. Click on the "Owner" form.
+3. Click on the "Owner" button in the task bar.
+
+Actual Results:
+Step 2: the title bar of the "Modal" form does not flash.
+Step 3: the "Owner" form is displayed over the "Modal" one.
+
+Expected Results:
+Step 2: the title bar of the "Modal" flashes.
+Step 3: the "Modal" remains over the "Owner" form.
+
+
+How often does this happen? 
+Always (on the SVN version).


More information about the mono-bugs mailing list