Context menu

  • Thread starter Thread starter FunIS
  • Start date Start date
F

FunIS

What is the best way of getting a submenu to regain focus after the click
event or is there a way of handling the click event so that you can run your
code and cancel the event so that the menu maintains it position and focus?
 
I once did something similar in VB6. What I had to do was OwnerDraw the
MenuItem, because the MenuItem needs to be disabled. The problem here is
that disabled menuitems do not receive a click event so you need to catch
mouse events via interop.
It may be much simpler to create a user control that looks and acts like a
menu.
 
What is the best way of getting a submenu to regain focus after the click
event or is there a way of handling the click event so that you can run your
code and cancel the event so that the menu maintains it position and
focus?

This is not how Windows menus are supposed to work. Why not create your own
control that does what you want but won't confuse your users?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top