Solved

Another minimize tray ?

Posted on 1998-09-22
4
210 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 50 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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

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…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…

743 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now