NotifyIcon context menu doesn't alway open

waughp

Member
Joined
Feb 18, 2005
Messages
15
Programming Experience
Beginner
I've got a windows form application created in VB 2005 that is working great with the exception of the context menu for the NotifyIcon.

I've created the NotifyIcon as well as the ContextMenuStrip and I've assigned the ContextMenuStrip to the NotifyIcon. The ContextMenuStrip contains the following options: "Show Window", seperator, "Exit Program". The "Exit Program" option has an icon associated with it that shows up perfectly.

The problem I'm experiencing is that the context menu only displays after I right click on the NotifyIcon twice. It consistantly displays every other right click, but not every time.

Anybody have any suggestions?
 
Nevermind, I figured out what I did wrong. I had an event created for a single click on the trayicon to activate the form. I wanted the form to activate if the user single clicked on the tray icon. Now I have it check the window state status first. Thanks.
 
Back
Top