By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,163 Members | 1,458 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,163 IT Pros & Developers. It's quick & easy.

Context Menu

P: n/a
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.
Nov 21 '05 #1
Share this Question
Share on Google+
12 Replies


P: n/a
"Kevin L" <no_spam@not_real_email.com> schrieb:
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.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #2

P: n/a
Use '(Sender, e)'

Crouchie1998
BA (HONS) MCP MCSE
Nov 21 '05 #3

P: n/a
"Crouchie1998" <cr**********@spamcop.net> schrieb:
Use '(Sender, e)'


Did you read the OP's post?

;-)

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
Nov 21 '05 #4

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

Crouchie1998
BA (HONS) MCP MCSE
Nov 21 '05 #5

P: n/a
"Kevin L" <no_spam@not_real_email.com> schrieb:
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.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #6

P: n/a
"Crouchie1998" <cr**********@spamcop.net> schrieb:
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 :-).

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #7

P: n/a
Use '(Sender, e)'

Crouchie1998
BA (HONS) MCP MCSE
Nov 21 '05 #8

P: n/a
"Crouchie1998" <cr**********@spamcop.net> schrieb:
Use '(Sender, e)'


Did you read the OP's post?

;-)

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
Nov 21 '05 #9

P: n/a
Thanks very much.

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
"Kevin L" <no_spam@not_real_email.com> schrieb:
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.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #10

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

Crouchie1998
BA (HONS) MCP MCSE
Nov 21 '05 #11

P: n/a
"Crouchie1998" <cr**********@spamcop.net> schrieb:
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 :-).

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #12

P: n/a
Thanks very much.

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
"Kevin L" <no_spam@not_real_email.com> schrieb:
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.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #13

This discussion thread is closed

Replies have been disabled for this discussion.