Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / VB.NET / March 2008

Tip: Looking for answers? Try searching our database.

MenuStrips show even if not assigned to MainMenuStrip

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Academia - 05 Mar 2008 17:32 GMT
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
Thorsten Doerfler - 05 Mar 2008 20:05 GMT
Academia schrieb:
> 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
Signature

Microsoft MVP Visual Basic

vb-hellfire visual basic faq  | vb-hellfire - einfach anders
http://vb-faq.de/             | http://www.vb-hellfire.de/


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.