System.Windows.Forms.Form.Menu Property

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


public MainMenu Menu { set; get; }


Documentation for this section has not yet been entered.


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.


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