Context menu with multiple controls

M

mick

A Form with multiple textboxes. One context menu attached to the three
textboxes. How do I tell which of the textboxes fired the menu. Theres a
ContextMenuStrip.SourceControl but it just seems to give the text of the
parent textbox.

A bit of code would clear the fog.

TIA

mick
 
M

mick

mick said:
A Form with multiple textboxes. One context menu attached to the three
textboxes. How do I tell which of the textboxes fired the menu. Theres a
ContextMenuStrip.SourceControl but it just seems to give the text of the
parent textbox.

A bit of code would clear the fog.

Forget it. I seem to have sussed it.

mick
 

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