How to hide an app at at startup

  • Thread starter Thread starter MJB
  • Start date Start date
I have an application that I need to hide at startup in the system tray.

Ummm... then why have an interface at all?

By "at startup" do you mean system startup or application startup?

Is the desired result to have the program running without the user knowing it?
 
It is a service monitoring/controller app. It starts up via the Start
up folder. Why display it on the desktop when it can be tucked nicely
in the System Tray until the user needs it? Any ideas?
 
MJB said:
I have an application that I need to hide at startup in the system tray.

Wouldn't it work if you do:

- set your application form WindowState from properties to to minimized
- use notifyIcon and set it on form LOAD event to something


That way application form should start minimized.

And if you want hide app from taskbar, just set form property ShowInTaskbar
to false, but REMEMBER to set

this.WindowState = FormWindowState.Normal;

on notifyIcon click or dblclick event or something..

<snip>
 
Don't show it.

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Numbskull

Show me your certification without works,
and I'll show my certification
*by* my works.
 
It is a service monitoring/controller app. It starts up via the Start
up folder. Why display it on the desktop when it can be tucked nicely
in the System Tray until the user needs it? Any ideas?

Ah, then you don't mean to put it in the System Tray and then hide it as the
original post implied?
 
Back
Top