Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Trap the Minimize button. 2

Status
Not open for further replies.

CartoonDog

IS-IT--Management
Jun 29, 2002
25
US
I have written an app that uses the systray. I have disabled the ShowInTaskBar property of the form in question. When the user presses the Min button I want an animation of the form to shrink down to the systray. I have the animation working fine if I execute it with a command button, but I want it to be triggered by the Min button. Any ideas?

Thanks in advance.

Cartoondog.

PS. I am going to try this code snippet, but am expecting results that will be less than desireable:

Private Sub Form_Resize()
If Me.WindowState = vbMinimized Then Me.WindowState = vbNormal
End Sub
 
Thats worth a star. Very similar to the ehlp I had from vb5prgrmr when I desperately wanted to find a way if Word application was still open. I found that it was far too easy for a user to click on Word, then click the mainform, and word would vanish behind somewhere, leaving the retched thing still open. This caused havoc when Word was reopened the automation kept falling over. Thats a good reference, thanks.
vb5prgrmr really stopped me topping myself, thanks again if you read this.
 
A star from me to, this will keep me out of a few corners...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top