B
Bob
Suppose I create a very simple Windows Forms application, consisting of
a main form, Form1, with a (modal) dialog form, Form2, intended to
appear on top of the main form.
static void Main()
{
Application.Run(new Form1());
Form2 myForm2 = new Form2();
myForm2.ShowDialog();
}
My problem is this:
When I run my app, Form2 appears to be hidden beneath/behind Form1.
(i.e., Only Form1 is visible. If I quit the app, I can momentarily see
Form2 beneath/behind Form1.)
My question is: Why is this behavior occurring?
Thanks!
a main form, Form1, with a (modal) dialog form, Form2, intended to
appear on top of the main form.
static void Main()
{
Application.Run(new Form1());
Form2 myForm2 = new Form2();
myForm2.ShowDialog();
}
My problem is this:
When I run my app, Form2 appears to be hidden beneath/behind Form1.
(i.e., Only Form1 is visible. If I quit the app, I can momentarily see
Form2 beneath/behind Form1.)
My question is: Why is this behavior occurring?
Thanks!