Question on Context menus

  • Thread starter Thread starter Dom
  • Start date Start date
D

Dom

I have a number of controls that use the same context menus. In some
events, I need to know which control is showing the menu. I just use
whichever control has the "focused" property, since I assume one of
them must. Is this the correct way?

Dom
 
are you talking about ContextMenu or ContextMenuStrip?
vo1d






- Show quoted text -

Sorry, I meant ContextMenuStrips. Although, now that I'm on the
subject, I really don't know the difference between the two.

Dom
 
hi dom,
contextmenustrips came with net 2.0 and replaces the contextmenus.
they are much more flexible and easier to use with regards to have custom
drawing or icons.
with regards to your question, you can use the SourceControl property of the
contextmenustrip.
cheers
vo1d
 
hi dom,
contextmenustrips came with net 2.0 and replaces the contextmenus.
they are much more flexible and easier to use with regards to have custom
drawing  or icons.
with regards to your question, you can use the SourceControl property of the
contextmenustrip.
cheers
vo1d







- Show quoted text -

Thanks, exactly what I wanted.

Dom
 
Back
Top