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

context menu and controls

P: n/a
The context menu is a form level control. Is there a way to affix a context
menu, not to the form, but rather to one of the controls instead?

Thanks for any help.

Bernie Yaeger
Nov 21 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Hey, nevermind - I just read a response from Cor to another question that
answered me! Tx anyway. You just define the context menu in the property
grid of the designer to the control in question.

Bernie

"Bernie Yaeger" <be*****@cherwellinc.com> wrote in message
news:eM**************@TK2MSFTNGP14.phx.gbl...
The context menu is a form level control. Is there a way to affix a
context menu, not to the form, but rather to one of the controls instead?

Thanks for any help.

Bernie Yaeger

Nov 21 '05 #2

P: n/a
"Bernie Yaeger" <be*****@cherwellinc.com> schrieb:
The context menu is a form level control. Is there a way to affix a
context menu, not to the form, but rather to one of the controls instead?

Assign the contextmenu to the control's 'ContextMenu' property. If you need
a reference to the control the context menu was shown on, you can check the
contextmenu's 'SourceControl' property when an item was clicked.

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

P: n/a
Tx Herfried - I saw a post that answered the question just before you
responded.

Bernie

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:OF**************@TK2MSFTNGP15.phx.gbl...
"Bernie Yaeger" <be*****@cherwellinc.com> schrieb:
The context menu is a form level control. Is there a way to affix a
context menu, not to the form, but rather to one of the controls instead?

Assign the contextmenu to the control's 'ContextMenu' property. If you
need a reference to the control the context menu was shown on, you can
check the contextmenu's 'SourceControl' property when an item was clicked.

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

Nov 21 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.