Represents the abstract base class that manages events and layout for all the elements that a System.Windows.Forms.ToolStrip or System.Windows.Forms.ToolStripDropDown can contain.
See Also: ToolStripItem Members
A System.Windows.Forms.ToolStripItem is an element such as a button, combo box, text box, or label that can be contained in a System.Windows.Forms.ToolStrip control or a System.Windows.Forms.ToolStripDropDown control, which is similar to a Windows shortcut menu. The System.Windows.Forms.ToolStrip class manages the painting and keyboard and mouse input, including drag-and-drop input, for these elements, and the System.Windows.Forms.ToolStripItem class manages events and layout within the elements themselves.
System.Windows.Forms.ToolStripItem classes either inherit directly from System.Windows.Forms.ToolStripItem, or they inherit indirectly from System.Windows.Forms.ToolStripItem through System.Windows.Forms.ToolStripControlHost or System.Windows.Forms.ToolStripDropDownItem.
System.Windows.Forms.ToolStripItem controls must be contained in a System.Windows.Forms.ToolStrip, System.Windows.Forms.MenuStrip, System.Windows.Forms.StatusStrip, or System.Windows.Forms.ContextMenuStrip and cannot be added directly to a form. The various container classes are designed to contain an appropriate subset of System.Windows.Forms.ToolStripItem controls.
Note A given System.Windows.Forms.ToolStripItem cannot have more than one parent System.Windows.Forms.ToolStrip. You must copy of the System.Windows.Forms.ToolStripItem and add it to other System.Windows.Forms.ToolStrip controls.
The following table shows the elements that derive from the System.Windows.Forms.ToolStripItem class and which therefore can be hosted in a System.Windows.Forms.ToolStrip or System.Windows.Forms.ToolStripDropDown.