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 [EMAIL PROTECTED] 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: [EMAIL PROTECTED] +ReportedBy: [EMAIL PROTECTED] +QAContact: [EMAIL PROTECTED] +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"); + } + } +} _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
