many listviews, one common context menu strip

  • Thread starter Thread starter Dean Slindee
  • Start date Start date
D

Dean Slindee

VS2008: I have one context menu strip connected to several listviews. In
the code in the context menu_Click , I would like to know which of several
listviews was used to invoke the context menu item. Is this possible?

Thanks in advance
Dean Slindee
 
VS2008: I have one context menu strip connected to several listviews. In
the code in the context menu_Click , I would like to know which of several
listviews was used to invoke the context menu item. Is this possible?

I've never tried this but doesn't the sender property tell you that?
 
VS2008: I have one context menu strip connected to several listviews. In
the code in the context menu_Click , I would like to know which of several
listviews was used to invoke the context menu item. Is this possible?

I've never tried this but doesn't the sender property tell you that?
 
Dean said:
VS2008: I have one context menu strip connected to several listviews.
In the code in the context menu_Click , I would like to know which of
several listviews was used to invoke the context menu item. Is this
possible?

See ContextMenuStrip's SourceControl property.


Armin
 
Dean said:
VS2008: I have one context menu strip connected to several listviews.
In the code in the context menu_Click , I would like to know which of
several listviews was used to invoke the context menu item. Is this
possible?

See ContextMenuStrip's SourceControl property.


Armin
 
Back
Top