* Merge winforms framework content to working branch (#14) * Breadcrumb / TOC / Move net5 to net folder (#15) * change path from net5 to net * Mess with bread/toc * Mess with bread/toc * Mess with bread/toc * Mess with bread/toc * Mess with bread/toc * Mess with bread/toc * Mess with bread/toc * Mess with bread/toc * Mess with bread/toc * Mess with bread/toc * Mess with bread/toc * Mess with bread/toc * Mess with bread/toc * Mess with bread/toc * Add .net 5 winforms placeholder article (#16) * added some metadata and adjusted net5 placeholder * corrections * corrections * corrections * Test1 * Swapping landing page vs concept * fix links * Fix links * Fix desc
7.7 KiB
title, ms.date, f1_keywords, helpviewer_keywords, ms.assetid
| title | ms.date | f1_keywords | helpviewer_keywords | ms.assetid | |||||
|---|---|---|---|---|---|---|---|---|---|
| ToolStrip Control Overview | 03/30/2017 |
|
|
81d067ed-297c-4dad-90de-1bcac15336ec |
ToolStrip Control Overview (Windows Forms)
The Windows Forms xref:System.Windows.Forms.ToolStrip control and its associated classes provide a common framework for combining user interface elements into toolbars, status bars, and menus. xref:System.Windows.Forms.ToolStrip controls offer a rich design-time experience that includes in-place activation and editing, custom layout, and rafting, which is the ability of toolbars to share horizontal or vertical space.
Although xref:System.Windows.Forms.ToolStrip replaces and adds functionality to the control in previous versions, xref:System.Windows.Forms.ToolBar is retained for both backward compatibility and future use if desired.
Features of the ToolStrip Controls
Use the xref:System.Windows.Forms.ToolStrip control to:
-
Present a common user interface across containers.
-
Create easily customized, commonly employed toolbars that support advanced user interface and layout features, such as docking, rafting, buttons with text and images, drop-down buttons and controls, overflow buttons, and run-time reordering of xref:System.Windows.Forms.ToolStrip items.
-
Support overflow and run-time item reordering. The overflow feature moves items to a drop-down menu when there is not enough room to display them in a xref:System.Windows.Forms.ToolStrip.
-
Support the typical appearance and behavior of the operating system through a common rendering model.
-
Handle events consistently for all containers and contained items, in the same way you handle events for other controls.
-
Drag items from one xref:System.Windows.Forms.ToolStrip to another or within a xref:System.Windows.Forms.ToolStrip.
-
Create drop-down controls and user interface type editors with advanced layouts in a xref:System.Windows.Forms.ToolStripDropDown.
Use the xref:System.Windows.Forms.ToolStripControlHost class to use other controls on a xref:System.Windows.Forms.ToolStrip and gain xref:System.Windows.Forms.ToolStrip functionality for them.
You can extend the functionality and modify the appearance and behavior by using the xref:System.Windows.Forms.ToolStripRenderer, xref:System.Windows.Forms.ToolStripProfessionalRenderer, and xref:System.Windows.Forms.ToolStripManager along with the xref:System.Windows.Forms.ToolStripRenderMode and xref:System.Windows.Forms.ToolStripManagerRenderMode enumerations.
The xref:System.Windows.Forms.ToolStrip control is highly configurable and extensible, and it provides many properties, methods, and events to customize appearance and behavior. Below are some noteworthy members:
Important ToolStrip Members
The xref:System.Windows.Forms.ToolStrip control's flexibility is achieved through the use of a number of companion classes. Below are some of the most noteworthy:
Important ToolStrip Companion Classes
For more information, see ToolStrip Technology Summary and ToolStrip Control Architecture.