Link to home
Start Free TrialLog in
Avatar of Stomper
Stomper

asked on

How Do I Hide Application on Startup

I am making an application that sits in the System Tray, and I was wondering how I
make the program hide itself on startup so that all the user sees when they run it is the icon
in the system tray?
ASKER CERTIFIED SOLUTION
Avatar of ZifNab
ZifNab

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Zif? How can you write so much thing in a minute. Congratualtions
Igor
Avatar of ZifNab
ZifNab

Hi Igor,

I'm a robot. ;-)

Well to tell you the thruth, I just copied it from my previous answer handling the same thing.....

How do you do?

Regards, ZiF.
Avatar of Stomper

ASKER

 I'm just looking to make the main form hide on startup so that when the program is run the
only thing that is visible on startup is the system tray icon.
Then just use the procedures :

 Hide (to hide the form)
 And Show (to bring it back).

Regards, Zif.
What's about

  StartUpInfo.wShowWindow := SW_HIDE


 
OR
 you may want to remove app from task bar

  ShowWindow(Application.Handle,SW_HIDE)