Context menu from a set of check boxes

G

Guest

Hi,
I have a dynamic array of checkboxes with control tag and a contextmenu
whose
menu items are “Increaseâ€,â€Decrease†with click events. Every check box in
the array has the same context menu. When I tap and hold on a check box, the
context menu pops up. Now I would like to know which checkbox fires the
contextmenu, so that I can find the tag of the checkbox when the user choose
the menu item “Increase’ Or “Decreaseâ€. If any one knows the solution, please
help me.

Thanks!!
 
D

Daniel Moth

If you catch the Popup event from the contextmenu you can see which control
it is attached to: ((ContextMenu)sender).SourceControl

If you are asking a different question then please post a small repro and
elaborate/rephrase your question...

Cheers
Daniel
 

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

Top