Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Another minimize tray ?

Posted on 1998-09-22
4
Medium Priority
?
220 Views
Last Modified: 2010-04-30
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!
0
Comment
Question by:cdc_sickle
4 Comments
 
LVL 2

Accepted Solution

by:
BergJC earned 200 total points
ID: 1436149
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
 

Author Comment

by:cdc_sickle
ID: 1436150
Thanx man, just wish you could have answerd that in my last question cause this costed another 50 points on me.
0
 
LVL 2

Expert Comment

by:ChrisK
ID: 1436151
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
 

Expert Comment

by:Freshprince
ID: 4314577
     
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

824 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question