MenuStrips show even if not assigned to MainMenuStrip

  • Thread starter Thread starter Academia
  • Start date Start date
A

Academia

I created two menustrips in the Designer, but assigned neither to
MainMenuStrip.
However when I open the form they both show.
Is that what you would expect?


So I set both Visible properties to False and now they don't show but I have
no mainmenu showing at all.
Is that what you would expect.

What might I be doing wrong?



Thanks
 
Academia said:
I created two menustrips in the Designer, but assigned neither to
MainMenuStrip.
However when I open the form they both show.
Is that what you would expect?

Yes. The MenuStrips, in contrast to the native Windows Menus, are
acting as stand-alone components, like Toolbars/ToolStrips. Your Form
can have more than one menu at the same time. The MainMenuStrip
property only tells the form, which Menu is handling keyboard
shortcuts, if there is more than one MenuStrip. It's not responsible
for showing or hiding menus.
So I set both Visible properties to False and now they don't show but I have
no mainmenu showing at all.
Is that what you would expect.

Yes, for sure.
What might I be doing wrong?

What do you intend?

Thorsten Doerfler
 
Back
Top