System.Windows.Forms.Form.MainMenuStrip Property

Gets or sets the primary menu container for the form.

Syntax

[System.ComponentModel.TypeConverter(typeof(System.ComponentModel.ReferenceConverter))]
[System.ComponentModel.DefaultValue(null)]
public MenuStrip MainMenuStrip { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

In addition to setting the Form.MainMenuStrip property, you must System.Windows.Forms.Control.ControlCollection.Add(Control) the System.Windows.Forms.MenuStrip control to the Control.Controls collection of the form.

The System.Windows.Forms.MenuStrip class supersedes the System.Windows.Forms.MainMenu class in previous versions of the .NET Framework.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 2.0.0.0