I need to make a program that does not have any forms in it whatsoever, but does put a notify icon with a right click menu in the system tray. I've tried doing something like this:
VB Code:
Dim trayicon As New System.Windows.Forms.NotifyIcon Dim icon As New Icon("C:\myicon.ico") trayicon.Icon = icon trayicon.Visible = True
But that doesn't work.
Even if I could create a notify icon I don't know how to add menu items to it that do anything.
If someone could post a sample of some code on how to do either of these things or point me to some place with an example, I'd appreciate it very much.




Reply With Quote