Represents the menu structure of a form. Although MenuStrip replaces and adds functionality to the control of previous versions, is retained for both backward compatibility and future use if you choose.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Gets a value indicating whether the component can raise an event.(Inherited from Component.)
Gets a value representing the window handle for the menu.(Inherited from Menu.)
Gets a value indicating whether this menu contains any menu items. This property is read-only.(Inherited from Menu.)
Gets or sets whether the text displayed by the control is displayed from right to left.
Gets or sets user-defined data associated with the control.(Inherited from Menu.)
Creates a newthat is a duplicate of the current .
Creates a new handle to the Menu.(Overrides Menu.CreateMenuHandle().)
Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.(Inherited from MarshalByRefObject.)
Disposes of the resources, other than memory, used by the Menu.Dispose(Boolean).).(Overrides
Determines whether the specified object is equal to the current object.(Inherited from Object.)
Returns the position at which a menu item should be inserted into the menu.(Inherited from Menu.)
Gets the Form that contains this control.
Serves as the default hash function. (Inherited from Object.)
Retrieves the current lifetime service object that controls the lifetime policy for this instance.(Inherited from MarshalByRefObject.)
Gets the Menu.)that contains this menu.(Inherited from
Obtains a lifetime service object to control the lifetime policy for this instance.(Inherited from MarshalByRefObject.)
Raises the Collapse event.
Processes a command key.(Inherited from Menu.)
This API supports the product infrastructure and is not intended to be used directly from your code. Returns a string that represents the Menu.ToString().).(Overrides
The MenuItem objects that represent the individual menu commands in the menu structure. Each MenuItem can be a command for your application or a parent menu for other submenu items. To bind the to the Form that will display it, assign the to the Menu property of the Form.control represents the container for the menu structure of a form. A menu is composed of
For applications that will have support for multiple languages, you can use the RightToLeft property to display the text of the menu from right to left to support languages such as Arabic.
You can create different CloneMenu method to create a copy. Once you have a copy of the menu structure, you can make the appropriate modifications for your new menu structure.objects to represent different menu structures for your form. If you want to reuse the menu structure contained in a specific , you can use its
Cutting and pasting menu items from one form to another in the designer might not work as expected if the form you are pasting into has no menu items defined.
Available since 1.1
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.