Send to Tray..

V

VJ

Is it possible to send a application as a Icon to the System Tray on
startup?.. I am sending it tray on few events inside my application, I want
to send it to tray on startup.. I tried the following it did not work.. I
still the minimized view above the task bar..

this.WindowState = FormWindowState.Minimized;
this.Hide();

I have this code in the form's Load event...Maybe I need to do this in a
different event.. I can't use the Resize and the Activate events, because
that causes other problems for me..

VJ
 
W

William Ryan eMVP

VJ:

Have you added a NotifyIcon? Once you do that you can set it to visible
(the notifyIcon) or visible = false
 
V

VJ

I think i was misunderstood.. I am able to get the Icon to show and all is
fine.. It is just my when the application starts, I want just a Icon to show
up in the status notification area.. So in trying the below code.. The icon
does show up, but I have a minimized view of the window still sitting on top
of my
taskbar. How do I get ride of this...???

VJ
 
V

VJ

How do I hide my application? I tried to do this.hide() or this.visible =
false on Form_Load, both don't seem to help..

VJ
 

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