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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Event for Form Minimize/Restore?

Status
Not open for further replies.

Chrgr

Programmer
Jan 11, 2003
5
US
I am writing a help/wizard type of application in VB6. After the user does a particular function, they are done and so I minimize the main form of the application. I want to detect when the application/form is restored again by the user clicking on it in the taskbar. Is there an event for this? I haven't been able to find one that works. Thanks in advance.
 
Can you use the form's got focus event at all?

I assume when the form is maximised again the first thing
that will fire with me the gotfocus event?
Or maybe even the form.resize event?

Transcend
[gorgeous]
 
The Resize Event is triggered for those cases but also if the Window us resized by the user dragging a border of a resizable Window. You may need to keep track of the previous WindowState in a form-level variable to know why the Resize event occurred. Forms/Controls Resizing/Tabbing Control
Compare Code (Text)
Generate Sort Class in VB or VBScript
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top