Initial winforms content migrated (#18)

* 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
This commit is contained in:
Andy De George
2020-09-01 16:26:21 -07:00
committed by GitHub
parent 1a27c9b107
commit c0ba284473
1557 changed files with 129980 additions and 13 deletions
@@ -0,0 +1,42 @@
---
title: "ToolBar Control"
ms.date: "03/30/2017"
helpviewer_keywords:
- "toolbars [Windows Forms]"
- "ToolBar control [Windows Forms]"
ms.assetid: 6b40e9ce-6a7a-4784-bfc9-7f1d36b7462e
---
# ToolBar Control (Windows Forms)
> [!NOTE]
> The <xref:System.Windows.Forms.ToolStrip> control replaces and adds functionality to the `ToolBar` control; however, the `ToolBar` control is retained for both backward compatibility and future use, if you choose.
The Windows Forms `ToolBar` control is used on forms as a control bar that displays a row of drop-down menus and bitmapped buttons that activate commands. Thus, clicking a toolbar button is equivalent to choosing a menu command. The buttons can be configured to appear and behave as push buttons, drop-down menus, or separators. Typically, a toolbar contains buttons and menus that correspond to items in an application's menu structure, providing quick access to an application's most frequently used functions and commands.
> [!NOTE]
> The `ToolBar` control's <xref:System.Windows.Forms.ToolBarButton.DropDownMenu%2A> property takes an instance of the <xref:System.Windows.Forms.ContextMenu> class as a reference. Carefully consider the reference you pass when implementing this sort of button on toolbars in your application, as the property will accept any object that inherits from the <xref:System.Windows.Forms.Menu> class.
## In This Section
[ToolBar Control Overview](toolbar-control-overview-windows-forms.md)
Introduces the general concepts of the `ToolBar` control, which allows you to design custom toolbars that your users can work with.
[How to: Add Buttons to a ToolBar Control](how-to-add-buttons-to-a-toolbar-control.md)
Describes how to add buttons to a `ToolBar` control.
[How to: Define an Icon for a ToolBar Button](how-to-define-an-icon-for-a-toolbar-button.md)
Describes how to display icons within a `ToolBar` control's buttons.
[How to: Trigger Menu Events for Toolbar Buttons](how-to-trigger-menu-events-for-toolbar-buttons.md)
Gives directions on writing code to interpret which button the user clicks in a `ToolBar` control.
Also see [How to: Define an Icon for a ToolBar Button Using the Designer](how-to-define-an-icon-for-a-toolbar-button-using-the-designer.md), [How to: Add Buttons to a ToolBar Control Using the Designer](how-to-add-buttons-to-a-toolbar-control-using-the-designer.md).
## Reference
<xref:System.Windows.Forms.ToolBar> class
Provides reference information on the class and its members.
## Related Sections
[Controls to Use on Windows Forms](controls-to-use-on-windows-forms.md)
Provides a complete list of Windows Forms controls, with links to information on their use.
[ToolStrip Control](toolstrip-control-windows-forms.md)
Describes toolbars that can host menus, controls, and user controls in Windows Forms applications.