G
Gerard Buskermolen
Hello,
I've created a C# console application.
When the application starts, I show in NotificationIcon with a related
contextmenu. This contextmenu has 3 menuitems.
Each menuitem opens a window using (for example)
menuItem.Click += new EventHandler(ChangePassword_Click);
The ChangePassword_Click method opens a window (allowing the user to
change his password).
When I right-click the notification icon, the contextmenu appears.
So far, so good.
But.... when I select one of the menuitem, nothing happens.
Right-clicking the notification icon again, does not show the
contextmenu again, but instead immediately opens the change-password
window (or one of the other 2 windows if I selected that menuitem).
I found out that the problem is NOT that the change-password window is
hidden or does not have the focus or someting like that, but that the
ChangePassword_Click method is called on the second right-click on the
icon instead of immediately when I select the menuItem.
Does anyone recognize this problem?
Thank for any reaction.
I've created a C# console application.
When the application starts, I show in NotificationIcon with a related
contextmenu. This contextmenu has 3 menuitems.
Each menuitem opens a window using (for example)
menuItem.Click += new EventHandler(ChangePassword_Click);
The ChangePassword_Click method opens a window (allowing the user to
change his password).
When I right-click the notification icon, the contextmenu appears.
So far, so good.
But.... when I select one of the menuitem, nothing happens.
Right-clicking the notification icon again, does not show the
contextmenu again, but instead immediately opens the change-password
window (or one of the other 2 windows if I selected that menuitem).
I found out that the problem is NOT that the change-password window is
hidden or does not have the focus or someting like that, but that the
ChangePassword_Click method is called on the second right-click on the
icon instead of immediately when I select the menuItem.
Does anyone recognize this problem?
Thank for any reaction.