E
eBob.com
My app is going to have an array of RichTextBoxes. I would like to have one
context menu for all of the RTBs. But I have learned that when a menu item
is clicked the "sender" for the click event is the menuitem. That makes
sense, of course, but I'll need to know which RTB the user was playing with.
So from the menuitem I'd like to trace back to the RTB, the "Tag" of which
will tell me which RTB the event handler needs to work with.
Even if I have to have a unique contextmenu for each RTB I am not sure how
that would work as I do not see a Tag property for either the MenuItem class
or the ContextMenu class.
Thanks for whatever help, advice, sympathy you can offer.
Bob
context menu for all of the RTBs. But I have learned that when a menu item
is clicked the "sender" for the click event is the menuitem. That makes
sense, of course, but I'll need to know which RTB the user was playing with.
So from the menuitem I'd like to trace back to the RTB, the "Tag" of which
will tell me which RTB the event handler needs to work with.
Even if I have to have a unique contextmenu for each RTB I am not sure how
that would work as I do not see a Tag property for either the MenuItem class
or the ContextMenu class.
Thanks for whatever help, advice, sympathy you can offer.
Bob