Context menu with multiple controls

  • Thread starter Thread starter mick
  • Start date Start date
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
 
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
 
Back
Top