9Feb/070
Easily create tray icon in .NET
Today we'll create simple tray icon app using visual basic .NET express edition. For the first step, we need to create new project. There, you'll be given 1 form called 'Form1.vb'. Open it and add NotifyIcon and ContextMenuStrip control from toolbox. Now here's the trick, set the following properties into given value.
Form:
| Name | Form1 |
| BackColor: | Color.BLACK (select web >> black) |
| ShowInTaskbar: | False |
| TransparencyKey: | Color.BLACK (select web >> black) |
NotifyIcon:
| Name | NotifyIcon1 |
| Icon: | Icon image you want to use. Note : without this, your try icon will never be shown. |
| ContextMenuStrip: | ContextMenuStrip1 |
| Visible: | True |
ContextMenuStrip:
| Name: | ContextMenuStrip1 |
| Items: | [menu item you want to show on your tray icon] |
That's it. You can now compile your apps and run it. Click here to download source code.








