Hi,
How can I maximized a form which has minimized, on button Click event.Plz, help.
Thanks.
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
VulpesPosted Oct 13, 2011, 1:39 PM
Do you mean to maximize a different form, say Form2?
Form2 form2 = (Form2)Application.OpenForms["Form2"]; // unless you already have a reference to Form2
Javeed M ShaikhPosted Oct 13, 2011, 1:35 PM
Please do not forget to mark "Accepted Answer".
VulpesPosted Oct 13, 2011, 1:35 PM
if (this.WindowState == FormWindowState.Minimized)
{
this.WindowState = FormWindowState.Maximized;
}