Gets or sets the primary menu container for the form.
<TypeConverterAttribute(GetType(ReferenceConverter))> _ Public Property MainMenuStrip As MenuStrip
[TypeConverterAttribute(typeof(ReferenceConverter))] public MenuStrip MainMenuStrip { get; set; }
[TypeConverterAttribute(typeof(ReferenceConverter))] public: property MenuStrip^ MainMenuStrip { MenuStrip^ get (); void set (MenuStrip^ value); }
[<TypeConverterAttribute(typeof(ReferenceConverter))>] member MainMenuStrip : MenuStrip with get, set
In addition to setting the MainMenuStrip property, you must Add the MenuStrip control to the Controls collection of the form.
The MenuStrip class supersedes the MainMenu class in previous versions of the .NET Framework.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2