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
 
Back
Top