Can a contextmenu be used in a VB.Net 2005 console application? If so, how do I create the necessary events. I know how to create the control but not sure about the needed events. I'm thinking the only one I really need is the "Click" event.
Thanks,
Printable View
Can a contextmenu be used in a VB.Net 2005 console application? If so, how do I create the necessary events. I know how to create the control but not sure about the needed events. I'm thinking the only one I really need is the "Click" event.
Thanks,
not that I am aware of, no.
Kleinma,
In that case, if I use it in a Windows app, how can I get the NotifiyIcon to show up in the Systray without the Form being active even though it's minimized? I basically don't want the Form to show at all.
Do you NOT want a console window OR winform window, and ONLY a notify icon?
Or do you want a console window that has a notify icon?
It's a Windows application that will display various Forms, however, on startup of the application, I only want the NotifyIcon to show in the systray and nothing else. Forms will eventually popup based on menu selections from the contextmenu.
you are using 2005 or 2008? I can give you a quick sample code showing how to create a notifyicon and context menu in a Sub Main and not load a form until needed.
I'm using 2005 and your example would be perfect!
Thanks,
here, see how this works for you.
That's exactly what I was looking for. One more thing if you don't mind and I know it's a different topic but how would I get a program to start upon bootup while placing the icon in the systray?
Thanks bro,