[Mono-bugs] [Bug 78753][Maj] New - When Form is TopMost, MessageBox is under the Form
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Mon Jul 3 11:14:24 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 kuba.brecka at gmail.com.
http://bugzilla.ximian.com/show_bug.cgi?id=78753
--- shadow/78753 2006-07-03 11:14:24.000000000 -0400
+++ shadow/78753.tmp.3792 2006-07-03 11:14:24.000000000 -0400
@@ -0,0 +1,60 @@
+Bug#: 78753
+Product: Mono: Class Libraries
+Version: 1.1
+OS: Windows XP
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Major
+Component: Windows.Forms
+AssignedTo: peter at novonyx.com
+ReportedBy: kuba.brecka at gmail.com
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: When Form is TopMost, MessageBox is under the Form
+
+When a Form has TopMost = true, and when you call MessageBox.Show, the
+MessageBox window gets shown, but under the form -> so it is unclickable,
+and the form is stuck. You can press <SPACE> to press the default
+messagebox button as a workaround.
+
+I'm not sure, but I think this happens only on Windows.
+
+Reproduce code:
+
+using System;
+using System.Collections.Generic;
+using System.Windows.Forms;
+
+namespace MonoTest7
+{
+ class Form1 : Form
+ {
+ static void Main()
+ {
+ Application.Run(new Form1());
+ }
+
+ public Form1()
+ {
+ TopMost = true;
+ WindowState = FormWindowState.Maximized;
+
+ Button B = new Button();
+ B.Left = 10; B.Top = 10;
+ B.Width = 100; B.Height = 100;
+ B.Text = "click me";
+ B.Click += new EventHandler(B_Click);
+
+ Controls.Add(B);
+ }
+
+ void B_Click(object sender, EventArgs e)
+ {
+ MessageBox.Show("hello world");
+ }
+ }
+}
More information about the mono-bugs
mailing list