Create TaskBar Icon
-
Hello, How can i create an icon (like in MSN) when the user launch the application? and to close it he have to close it from the TaskBar? thank alot...
You mean,
Notify
Icon onSystem Tray
:) Have a look into this, Notify Icon in System Tray with Context Menu Using C#[^]Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.
-
Hello, How can i create an icon (like in MSN) when the user launch the application? and to close it he have to close it from the TaskBar? thank alot...
By the task bar I assume you mean the system tray. You need to handle the FormClosing event and add a NotifyIcon. In the FormClosing, check if the form is Visible. If true, then hide the form, show the notify icon and set e.Cancel to true. All that's left to do then is add a context menu to the notify icon so you can provide a way to exit and handle left/right/double click on the notify icon for unhiding the form and hiding the icon.
Dave
Generic BackgroundWorker - My latest article!
BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
Why are you using VB6? Do you hate yourself? (Christian Graus) -
You mean,
Notify
Icon onSystem Tray
:) Have a look into this, Notify Icon in System Tray with Context Menu Using C#[^]Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.