I
inho yi
Hi
I have one MenuItem in main menu, who has submenus. I
setted Popup event handler of this menu item in order to
check or uncheck its sub menus. I want to clone this menu
item as one of menu item in my context, which is binded to
a notify icon.
So, I used .CloneMenu()
MenuItem miStatusClone = this.miStatus.CloneMenu();
this.cmTrayIcon.MenuItems.Add(0,miStatusClone);
The problem is, when I click on this menu item in context
menu, Popup event is not fired.
I tried to create another popup event and explicitely set
to this cloned menu item, but no success.
I also tried other events such as Click, but those events
are not fired as well.
Strange problem.. I checked documentation and thought that
there is no reason why the event is not fired...
Can anyone help?
I have one MenuItem in main menu, who has submenus. I
setted Popup event handler of this menu item in order to
check or uncheck its sub menus. I want to clone this menu
item as one of menu item in my context, which is binded to
a notify icon.
So, I used .CloneMenu()
MenuItem miStatusClone = this.miStatus.CloneMenu();
this.cmTrayIcon.MenuItems.Add(0,miStatusClone);
The problem is, when I click on this menu item in context
menu, Popup event is not fired.
I tried to create another popup event and explicitely set
to this cloned menu item, but no success.
I also tried other events such as Click, but those events
are not fired as well.
Strange problem.. I checked documentation and thought that
there is no reason why the event is not fired...
Can anyone help?