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!

restore a window 1

Status
Not open for further replies.

Ablecken

Programmer
Jun 5, 2001
130
US
If i have a form that does not show up in the taskbar and it is minimized, how do i know when it is minimized. and how do i get it back to the original size? its in the systray if that helps. i have a popup menu that i want to be able to have an option to restore the form.

Thanx a lot guys

Able
 
To work out if its minimized you can do a
if frmName.WindowState = vbMinimized (if you dont have vb 6 then its 1) then frmName.WindowState = vbMaximized (thats 2 - vbNormal is 0)
That will change it to maximized, but change it to vbNormal (or 0) to make it restore.

Hope this helps
Keith
sk_kdhall@hotmail.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top