F
Florian Pürsch
Hi group,
I have a MenuItem with some subitems. I don't want the Click-Event of the
MenuItem to show me the subitems, but to do something else - e.g. opening a
dialog. The subitems will be shown anyway by mouseOver.
MenuItem submenuImages = new MenuItem("Image", new
EventHandler(this.menuItem_Image));
or
submenuImages.Click += new EventHandler(menuItem_Image);
But this EventHandler is never accessed. Why?
I also tried to derive from MenuItem to create my own MenuItem and overwrite
it's OnClick - but it seems to me, that this is not possible.
Florian
I have a MenuItem with some subitems. I don't want the Click-Event of the
MenuItem to show me the subitems, but to do something else - e.g. opening a
dialog. The subitems will be shown anyway by mouseOver.
MenuItem submenuImages = new MenuItem("Image", new
EventHandler(this.menuItem_Image));
or
submenuImages.Click += new EventHandler(menuItem_Image);
But this EventHandler is never accessed. Why?
I also tried to derive from MenuItem to create my own MenuItem and overwrite
it's OnClick - but it seems to me, that this is not possible.
Florian