I have an interesting question.
I have made my own ContextMenuStrip containing:
Cut, Copy, Paste, Delete
And I have this set to all the TextBoxes on my form, so when the user clicks 'Copy' from the context menu on any of the textboxes, how do I detect which textbox the user right-clicked on?
Usually 'Sender' would be the object to cast as a textbox, but in this case 'Sender' is a ToolStripMenuItem and I don't see any useful methods or properties provided with 'e' either.
Any idea's?
I have made my own ContextMenuStrip containing:
Cut, Copy, Paste, Delete
And I have this set to all the TextBoxes on my form, so when the user clicks 'Copy' from the context menu on any of the textboxes, how do I detect which textbox the user right-clicked on?
Usually 'Sender' would be the object to cast as a textbox, but in this case 'Sender' is a ToolStripMenuItem and I don't see any useful methods or properties provided with 'e' either.
Any idea's?