上下文菜单 [英] Context Menu
问题描述
我有多个使用相同上下文菜单的控件。
有没有办法确定哪个控件在
上下文菜单中启动了上下文菜单'的点击事件?
发件人引用上下文菜单本身。
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.
推荐答案
" Kevin L" < no_spam@not_real_email.com> schrieb:
"Kevin L" <no_spam@not_real_email.com> schrieb:
我有多个控件使用相同的上下文菜单。
有没有办法确定哪个控件在上下文菜单的Click事件中启动了上下文菜单?
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?
检查contextmenu对象的''SourceControl''属性。
-
MS Herfried K. Wagner
MVP< URL:http://dotnet.mvps.org/>
VB< URL:http:// classicvb.org/petition/>
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/>
使用''(发件人,e)''
Crouchie1998
BA(HONS)MCP MCSE
Use ''(Sender, e)''
Crouchie1998
BA (HONS) MCP MCSE
" Crouchie1998" < CR ********** @ spamcop.net> schrieb:
"Crouchie1998" <cr**********@spamcop.net> schrieb:
使用''(发件人,电子邮箱)''
Use ''(Sender, e)''
您是否阅读了OP的帖子?
;-)
-
MS Herfried K. Wagner
MVP< URL :http://dotnet.mvps.org/>
VB< URL:http://classicvb.org/petition/>
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/>
这篇关于上下文菜单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!