Главная страница | назад





Article #16781: How to hide an app at startup in Builder

 Question and Answer Database
FAQ1781C.txt How to hide an app at startup in Builder
Category :VCL
Platform :All
Product :C++Builder 1.x
Question:
How do I hide an application from the user at startup (ie: no window
and nothing in the taskbar.)
Answer:
In the Application SOURCE (MyProgram.cpp), after the
Application->Initialize(); add the followng code:
ShowWindow( Application->Handle, SW_HIDE );
Application->ShowMainForm = false;
this will cause the application not to show up anywhere except in
a view of the processes, ie: WinNT TaskManager and PView.
7/2/98 10:32:32 AM

Last Modified: 01-SEP-99