Question on Context menus

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
 
D

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
 
V

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
 
D

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







- Show quoted text -

Thanks, exactly what I wanted.

Dom
 

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