Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Create A Menu In Code
Message
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Miscellaneous
Thread ID:
01410761
Message ID:
01410825
Views:
39
Hi Kevin,

>1) What's the difference between the two.

MainMenu is .NET 1.1, MenuStrip is 2.0 onwards.

>2) How do I change the look of the MainMenu

I don't think it would be worth the effort. The white menu effect is something you can also see with other older Windows applications such as VFP 6.

>3) How do you create a MenuStrip and add it to a form?

Very similar to your existing code:
			MenuStrip mnuMain = new MenuStrip();

			ToolStripMenuItem padFile = new ToolStripMenuItem("&File");

			mnuMain.Items.Add(padFile);

			ToolStripMenuItem barNew = new ToolStripMenuItem("&New...");
			padFile.DropDownItems.Add(barNew);

			barNew.Click += new EventHandler(OnMenuBarNewClick);

			this.Controls.Add(mnuMain);
			this.MainMenuStrip = mnuMain;
--
Christof
Previous
Reply
Map
View

Click here to load this message in the networking platform