How to hide an app at at startup

G

Guest

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?
 
M

MJB

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?
 
S

SorrowMan

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>
 
K

Kevin Spencer

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.
 
G

Guest

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top