Possible Duplicate:
What's the proper way to minimize to tray a C# WinForms app?
How can I create a program that runs in the background, and can be accessed via the Windows’ “Notification Area” (Where the date and time are in the lower right hand corner)?
In other words, I want to be able to create a program that runs and can toggle between having a display window and not having a display window.
NotifyIconand aContextMenuStrip.Set the Form event
resizeand do the following checkFor a example can download this project
Don’t worry about the right click event, the
NotifyIconwill automatically detect it and show theContextMenu