Code for minimize a form.

Dear Experts,

I have a dialogform with a contextmenu appearing when the user
clicks with the right button on the title bar of the dialogform.
In the dialogform I made an item called "Minimize". Now I
am looking for the code to minimize the form.

Peter
LVL 1
peterkiersAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
BuggyCoderConnect With a Mentor Commented:
To Minimize:-
this.WindowState=FormWindowState.Minimized;

To Maximize:-
this.WindowState=FormWindowState.Maximized;
0
 
peterkiersAuthor Commented:
Thanks.

Peter
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.