Home All Groups Group Topic Archive Search About

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

Author
12 Nov 2006 6:47 PM
Franky
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

Author
12 Nov 2006 7:35 PM
Spam Catcher
" Franky" <frankyNOSPAM@a-znet.com> wrote in
news:ufO2$roBHHA.3924@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.
Author
12 Nov 2006 7:51 PM
Franky
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


Show quoteHide quote
"Spam Catcher" <spamhoneypot@rogers.com> wrote in message
news:Xns9879943644BA0usenethoneypotrogers@127.0.0.1...

> If you do it via the designer you need to add the item twice.
>
>
Author
12 Nov 2006 8:04 PM
Franky
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.



Show quoteHide quote
" Franky" <frankyNOSPAM@a-znet.com> wrote in message
news:ew5diPpBHHA.3928@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" <spamhoneypot@rogers.com> wrote in message
> news:Xns9879943644BA0usenethoneypotrogers@127.0.0.1...
>
>> If you do it via the designer you need to add the item twice.
>>
>>
>
>