> 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
[quoted text clipped - 7 lines]
>
> - 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
vo1d - 28 Mar 2008 12:40 GMT
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
> > are you talking about ContextMenu or ContextMenuStrip?
> > vo1d
[quoted text clipped - 12 lines]
>
> Dom
Dom - 28 Mar 2008 14:27 GMT
> hi dom,
> contextmenustrips came with net 2.0 and replaces the contextmenus.
[quoted text clipped - 23 lines]
>
> - Show quoted text -
Thanks, exactly what I wanted.
Dom