Context Menu Help

  • Thread starter Thread starter news.microsoft.com
  • Start date Start date
N

news.microsoft.com

I have a group box with a number of radio buttons in it. I have a single
context menu associated with all of the radio buttons. How can I figure out
which control was right-clicked on when a user selects a menu item?

Thanks,
PJ
 
Hi PJ,

If you trap the MouseDown event which occurs before the Click, you can get
the RadioButton under the mouse. It will be given by the sender parameter.

Regards,
Fergus
 

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