System.Windows.Forms.Form.Menu Property

Gets or sets the System.Windows.Forms.MainMenu that is displayed in the form.

Syntax

[System.ComponentModel.DefaultValue(null)]
[System.ComponentModel.TypeConverter(typeof(System.ComponentModel.ReferenceConverter))]
[System.ComponentModel.Browsable(false)]
public MainMenu Menu { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

You can use this property to switch between complete menu sets at run time. For example, you can define one System.Windows.Forms.MainMenu to be displayed when your multiple-document interface (MDI) form has no active MDI child forms and another System.Windows.Forms.MainMenu to display when a child window is displayed. You can also use a different System.Windows.Forms.MainMenu when specific conditions exist in your application that require displaying a different menu set.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0
Since: .NET 2.0