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!

How to minimize to systray 1

Status
Not open for further replies.

hennep

Programmer
Dec 10, 2000
429
I am trying to minimize an application to the systray using the TTrayIcon control. I am able to create an icon in the systray with a popupmenu to restore or exit the app.

But how can I make it disappear from the taskbar ?

 
To hide your taskbar icon do:
Code:
ShowWindow(Application->Handle,SW_HIDE);

To make it reappear:
Code:
ShowWindow(Application->Handle,SW_SHOW);

For more information look at for their FAQ's.

James P. Cottingham

I am the Unknown lead by the Unknowing.
I have done so much with so little
for so long that I am now qualified
to do anything with nothing.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top