Context Menu

K

Kevin L

I have multiple controls that use the same context menu.
Is there a way to determine which control initiated the context menu in the
context menu's Click event?

sender references the context menu itself.
 
H

Herfried K. Wagner [MVP]

Kevin L said:
I have multiple controls that use the same context menu.
Is there a way to determine which control initiated the context menu in
the context menu's Click event?

Check the contextmenu object's 'SourceControl' property.
 
C

Crouchie1998

Where's your solution then, Herfried? I guess there isn't a link to a google
thread - LOL

Crouchie1998
BA (HONS) MCP MCSE
 
H

Herfried K. Wagner [MVP]

Crouchie1998 said:
Where's your solution then, Herfried? I guess there isn't a link to a
google
thread - LOL

Well, I posted a reply containing a solution quite a time ago :).
 

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