Regarding Windows Form opening and closing
Latest Revision
Hi,
I am calling a form1 show function at a menu item click. When the form1 opens, on OK button click, I am opening another form2 using an instance and closing the form1.
But the problem is that when form2 opens and form1 closes, the form2 gets minimized. I dont want that to happen, I even tried disabling the form2 minimized button.
here is a sample of what my code looks like:
MenuItemClick()
{
Form1 frm1 = new Form1;
frm1.show();
}
Form1Button_OK_Click()
{
Form2 frm2 = new Form2();
frm2.show();
this.hide();}
When I do this, the form1 does close, but the form2 minimizes.I want Form2 to be up on the screen. Can anyone help me on this?
Thanks
Posted 3-Oct-12 12:06pm
by
GB_1114.