Startup-Hidden, shortcut shows Form

  • Thread starter Thread starter Stanley
  • Start date Start date
S

Stanley

Hi,

If i start up my application when system boots up, and i want it to be
hidden.
So I did something like.. Form.Hide ();

But I want it to show the form when user double clicks the exe

So is there a way i can distinguish between system-automatic startup, and
user-clicks exe?

Thanks in advance.

Stan
 
Try using a command-line parameter to the app. e.g. so you run it like:
myapp.exe -hidden

Check the app arguments in Main(string[]) and pass a flag on to your form.

-Nathan
 
Back
Top