Another minimize tray ?

I got it all down except, when i right click on the icon in the tray and click open, the form wont come back up, refer to my other question, Minimize In Tray for the other things that i have said, it will help to answer this one!
cdc_sickleAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
BergJCConnect With a Mentor Commented:
Before you use the Form1.Show command to bring your form back, set it's .WINDOWSTATE property to zero (or 2, if you want the form to be maximized). That should bring it back for you.
0
 
cdc_sickleAuthor Commented:
Thanx man, just wish you could have answerd that in my last question cause this costed another 50 points on me.
0
 
ChrisKCommented:
Just a side note, checking if the size is 0/0 to hide the form is not the best method.  Simply check to see if the windows state is 0 1 or 2.  1 is minimized, if it's 1, hide the form...otherwise if you use the 0/0 detection you can't use the CLOSE button on your form.
0
 
FreshprinceCommented:
     
0
All Courses

From novice to tech pro — start learning today.