NotifyIcon / Remove from Taskbar
-
I have an existing C# program which displays a form and then runs a worker thread that does some work. I have arranged for the form data to be stored within the Registry and restored when it gets run again. What I would like to do is convert this fairly generic program to have the following features: 1. Check box that enables a NotifyIcon (Remove from Taskbar). 2. NotifyIcon that has a contextMenu that can show the form again. (context menu has "Show Me" and "Exit" options) I've read the tutorials on this site on creating NotifyIcon elements. However, I am not sure how to implement the above. Can someone provide some information? -Adrian
-
I have an existing C# program which displays a form and then runs a worker thread that does some work. I have arranged for the form data to be stored within the Registry and restored when it gets run again. What I would like to do is convert this fairly generic program to have the following features: 1. Check box that enables a NotifyIcon (Remove from Taskbar). 2. NotifyIcon that has a contextMenu that can show the form again. (context menu has "Show Me" and "Exit" options) I've read the tutorials on this site on creating NotifyIcon elements. However, I am not sure how to implement the above. Can someone provide some information? -Adrian
You need to add a NotifyIcon to your form and to attach a ContextMenu to it.