Activating ContextMenuStrip from a Icon's Tray.
Posted on 2006-05-19
Hello for all,
I had an application done in VB6, that created an Icon on the Window's Tray...
and when a mouse click on the icon a menu will appear.
In VB6 I used "PopUpMenu" that worked fine.
I upgraded the code to .NET using the same code for Tray (using Shell_NotifyIcon);
but for the Menu of course I have to use the ContextMenuStrip class -
that when a mouse click, it activates the MenuStrip after HIDING the main form:
menuStrip.Show(pnt) ' To locate the menu on "pnt" relative to screen
(Notice I use "menuStrip.Show(pnt)" to show it relatively to the screen and not "menuStrip.Show(Me, pnt)")
The problem here, that when menu got activated and opened I see its button, blank with
an empty icon on the taskbar! like I opened a new Form/Application.
Of course in normal situations where I activate the menu on some container I don't got this....
How can I make this not to appear anymore in the taskbar????
Thanks a lot in advance.