How can I make a .Net Winforms application that only runs in the System Tray?

The basic answer of using a NotifyIcon is correct but, like many things . NET, there are a host of subtleties involved in doing it right . The tutorial mentioned by Brad gives a good walk-through of the very basics, but does not address any of these.

I've wrote a traybar app with . NET 1.1 and I didn't need a form. First of all, set the startup object of the project as a Sub Main, defined in a module.

Then create programmatically the components: the NotifyIcon and ContextMenu. Be sure to include a MenuItem "Quit" or similar. Bind the ContextMenu to the NotifyIcon.

Invoke Application.Run(). In the event handler for the Quit MenuItem be sure to call set NotifyIcon. Visible = False, then Application.Exit().

Add what you need to the ContextMenu and handle properly :).

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions