Solved

Another minimize tray ?

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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Input past end of file vbs script 9 92
MS Access Search and Replace Using VBA 6 70
Microsoft Access combo box help 2 46
VB6 - Convert HH:MM into Decimal 8 54
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

776 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