Hi,
In my window application I have taken two form as form1 and form2. There is one button on form1 to show form2 on button click event. I run the application. On button click, form2 is shown. I minimized the form2. Now I want, When I click on button then form2 get maximized. What will be code for it. plz, help me.
Thanks, In advance
Loading
Javeed M ShaikhPosted Oct 12, 2011, 2:06 PM
On Button click check the following:
if(Form2.WindowState == FormWindowState.Minimized)
{
Form2.WindowState = FormWindowState.Maximized;
Form2.TopMost = true;
}
Please do not forget to mark "Accepted Answer".