sakiv
New member
- Joined
- Dec 2, 2004
- Messages
- 3
- Programming Experience
- 10+
Hi all
I had created a windows service and also had included a notifyicon to display in the system tray. But the problem is that when i install the service everything goes well, it installs and starts running but it does not show the icon in the system tray, no exceptions or errors are coming. Here is the code for the notifyicon that I had used :
Me.icoGPS.ContextMenu = Me.mnuGPS
Me.icoGPS.Icon = CType(resources.GetObject("icoGPS.Icon"), System.Drawing.Icon)
Me.icoGPS.Text = "GPS Server"
Me.icoGPS.Visible = True
This code is executing in the InitializeComponent()
Please let me know if someone has done it successfully. You can also email me the response.
Thanks
I had created a windows service and also had included a notifyicon to display in the system tray. But the problem is that when i install the service everything goes well, it installs and starts running but it does not show the icon in the system tray, no exceptions or errors are coming. Here is the code for the notifyicon that I had used :
Me.icoGPS.ContextMenu = Me.mnuGPS
Me.icoGPS.Icon = CType(resources.GetObject("icoGPS.Icon"), System.Drawing.Icon)
Me.icoGPS.Text = "GPS Server"
Me.icoGPS.Visible = True
This code is executing in the InitializeComponent()
Please let me know if someone has done it successfully. You can also email me the response.
Thanks