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

Can I add them to the context menu and programmically copy them to the main menu

P: n/a
I'm trying to learn about the MenuStrip and the ContextStrip.

I use Google and get an unbelievable number of hits but can't seem to find
out the answer to one question.

All the items on my context menu also appear on my main menu.

Do I have to use the Designer to add them to both (that is, do I have to
input the data twice.)

Or is there some way to add them only to the context menu and programmable
copy them to the main menu.


Thanks for any help at all
Nov 12 '06 #1
Share this Question
Share on Google+
3 Replies


P: n/a
" Franky" <fr**********@a-znet.comwrote in
news:uf**************@TK2MSFTNGP02.phx.gbl:
I'm trying to learn about the MenuStrip and the ContextStrip.

I use Google and get an unbelievable number of hits but can't seem to
find out the answer to one question.

All the items on my context menu also appear on my main menu.

Do I have to use the Designer to add them to both (that is, do I have
to input the data twice.)
If you do it via the designer you need to add the item twice.
Nov 12 '06 #2

P: n/a
My question is: Do I have to use the Designer and add them twice or is there
some way to programmically copy the ContextStrip items to the MenuStrip
(that is, copy them, not move them)?

thanks
"Spam Catcher" <sp**********@rogers.comwrote in message
news:Xn**********************************@127.0.0. 1...
If you do it via the designer you need to add the item twice.


Nov 12 '06 #3

P: n/a
I did find a FAQ that contained the statement:
We do support reusing the same ToolStripDropDown or ContextMenuStrip in
multiple places (non-nested).

If this means a ContextMenuStrip can be the forms context menu and also
appear on the forms main menu, I believe if I knew how to do that I'd be all
set.

" Franky" <fr**********@a-znet.comwrote in message
news:ew**************@TK2MSFTNGP03.phx.gbl...
My question is: Do I have to use the Designer and add them twice or is
there some way to programmically copy the ContextStrip items to the
MenuStrip (that is, copy them, not move them)?

thanks
"Spam Catcher" <sp**********@rogers.comwrote in message
news:Xn**********************************@127.0.0. 1...
>If you do it via the designer you need to add the item twice.



Nov 12 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.