System.Windows.Forms
2.0.0.0
System.Windows.Forms.ToolStrip
System.Runtime.InteropServices.ComVisible(true)
System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.AutoDispatch)
is the top-level container that supersedes . It also provides key handling and multiple document interface (MDI) features. Functionally, and work along with , although they are derived from .
The following items are specifically designed to work seamlessly with both and in all orientations. They are available by default at design time for the control:
-
-
-
The control represents the container for the menu structure of a form. You can add objects to the that represent the individual menu commands in the menu structure. Each can be a command for your application or a parent menu for other submenu items.
Although replaces and adds functionality to the control of previous versions, is retained for both backward compatibility and future use if you choose.
Provides a menu system for a form.
Constructor
Use this constructor to create a to which you can add objects.
Initializes a new instance of the class.
2.0.0.0
Property
System.ComponentModel.Browsable(false)
System.ComponentModel.DefaultValue(false)
System.Boolean
To be added.
The overflow feature moves menu items to a drop-down menu when there is not enough room to display them in a . When you set the property to true, you must also enable overflow for specific menu items by setting the property. By default, menu items are not displayed if they cannot fit within the available space.
Gets or sets a value indicating whether the supports overflow functionality.
2.0.0.0
Method
2.0.0.0
System.Windows.Forms.AccessibleObject
If you do not explicitly call the method, it will be called when the property is referenced.
To get or set the property, you must add a reference to the Accessibility assembly installed with the .NET Framework.
For a code example of using , see .
Creates a new accessibility object for the control.
A new for the control.
Method
2.0.0.0
System.Windows.Forms.ToolStripItem
Use the method to add a with commonly used characteristics to a .
Creates a with the specified text, image, and event handler on a new .
A , or a if the parameter is a hyphen (-).
The text to use for the . If the parameter is a hyphen (-), this method creates a .
The to display on the .
An event handler that raises the event when the is clicked.
Property
System.Windows.Forms.Padding
To be added.
To be added.
Gets the default spacing, in pixels, between the sizing grip and the edges of the .
2.0.0.0
Property
System.Windows.Forms.Padding
To be added.
Use the property to set the interior space between controls. When a control is a container of items, padding represents the space from the edge of the container.
Gets the spacing, in pixels, between the left, right, top, and bottom edges of the from the edges of the form.
2.0.0.0
Property
System.Boolean
To be added.
The property always returns false because typically, ToolTips are not used for menus or menu items.
Gets a value indicating whether ToolTips are shown for the by default.
2.0.0.0
Property
System.Drawing.Size
To be added.
To be added.
Gets the horizontal and vertical dimensions, in pixels, of the when it is first created.
2.0.0.0
Property
System.ComponentModel.DefaultValue(System.Windows.Forms.ToolStripGripStyle.Hidden)
System.Windows.Forms.ToolStripGripStyle
To be added.
To be added.
Gets or sets the visibility of the grip used to reposition the control.
2.0.0.0
Property
2.0.0.0
System.ComponentModel.TypeConverter(typeof(System.Windows.Forms.MdiWindowListItemConverter))
System.ComponentModel.MergableProperty(false)
System.ComponentModel.DefaultValue(null)
System.Windows.Forms.ToolStripMenuItem
To be added.
Use the property to designate or discover which displays MDI children.
Use the and events on child menus to reflect changes to the value of .
Gets or sets the that is used to display a list of Multiple-document interface (MDI) child forms.
Event
System.EventHandler
When activated by the ALT key, the or typically neither take nor remove the focus from the control that currently has the focus. If there is a control hosted within the or a drop-down of the , the control gains focus when the user presses the TAB key. In general, the , , , and events of might not be raised when they are activated by the keyboard. In such cases, use the and events instead.
For more information about handling events, see Consuming Events.
Occurs when the user accesses the menu with the keyboard or mouse.
2.0.0.0
Event
System.EventHandler
When activated by the ALT key, the or typically neither take nor remove the focus from the control that currently has the focus. If there is a control hosted within the or a drop-down of the , the control gains focus when the user presses the TAB key. In general, the , , , and events of might not be raised when they are activated by the keyboard. In such cases, use the and events instead.
For more information about handling events, see Consuming Events.
Occurs when the is deactivated.
2.0.0.0
Method
System.Void
Raising an event invokes the event handler through a delegate. For more information, see Raising an Event.
The method also allows derived classes to handle the event without attaching a delegate. This is the preferred technique for handling the event in a derived class.
Raises the event.
An that contains the event data.
2.0.0.0
Method
System.Void
Raising an event invokes the event handler through a delegate. For more information, see Raising an Event.
The method also allows derived classes to handle the event without attaching a delegate. This is the preferred technique for handling the event in a derived class.
Raises the event.
An that contains the event data.
2.0.0.0
Method
System.Boolean
To be added.
To be added.
To be added.
To be added.
To be added.
2.0.0.0
Property
System.ComponentModel.DefaultValue(false)
System.Boolean
To be added.
The property returns false by default because typically, ToolTips are not used for menus or menu items.
Gets or sets a value indicating whether ToolTips are shown for the .
2.0.0.0
Property
System.ComponentModel.DefaultValue(true)
System.Boolean
To be added.
To be added.
Gets or sets a value indicating whether the stretches from end to end in its container.
2.0.0.0
Method
System.Void
To be added.
To be added.
To be added.
2.0.0.0