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

Minimizing to the taskbar 1

Status
Not open for further replies.

PhilippeSignoret

Programmer
May 19, 2001
21
0
0
MX
I am in the middle of a project, and I need to know how to minimize a form to the taskbar.
 
if you want to minimise a form, use this in an event (commandbutton/menu click?)

Code:
[colour red]Form1[/colour].WindowState = 1   [colour green]' Minimise the form.[/colour]

Replace the red text with the name of the form you want to minimise.

To restore it again, use this:

Code:
[colour red]Form1[/colour].WindowState = 0   [colour green]' Restore the form to its original size.[/colour]

WindowState = 2 will maximise the window.

Hope this helps!

"For Lucky Best Code Use Mr Sparkle."
 
ok, but that's not what I meant.
I meant to minimize to the place where there are small icons (ICQ or Sound, etc). Anyone know?
 
I dont't think you will be able to do this. You need 32 bit api calls for that sort of thing. I don't think that there are 16 bit equivalents.

Unless someone knows different. Peter Meachem
peter@accuflight.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top