Files
docs-desktop/dotnet-desktop-guide/framework/winforms/controls/how-to-manage-toolstrip-overflow-in-windows-forms.md
T
Andy De George c0ba284473 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
2020-09-01 16:26:21 -07:00

3.3 KiB

title, ms.date, dev_langs, helpviewer_keywords, ms.assetid
title ms.date dev_langs helpviewer_keywords ms.assetid
How to: Manage ToolStrip Overflow 03/30/2017
csharp
vb
ToolStrip control [Windows Forms], managing overflow
toolbars [Windows Forms], managing overflow
examples [Windows Forms], toolbars
CanOverflow property
fa10e0ad-4cbf-4c0d-9082-359c2f855d4e

How to: Manage ToolStrip Overflow in Windows Forms

When all the items on a xref:System.Windows.Forms.ToolStrip control do not fit in the allotted space, you can enable overflow functionality on the xref:System.Windows.Forms.ToolStrip and determine the overflow behavior of specific xref:System.Windows.Forms.ToolStripItems.

When you add xref:System.Windows.Forms.ToolStripItems that require more space than is allotted to the xref:System.Windows.Forms.ToolStrip given the form's current size, a xref:System.Windows.Forms.ToolStripOverflowButton automatically appears on the xref:System.Windows.Forms.ToolStrip. The xref:System.Windows.Forms.ToolStripOverflowButton appears, and overflow-enabled items are moved into the drop-down overflow menu. This allows you to customize and prioritize how your xref:System.Windows.Forms.ToolStrip items properly adjust to different form sizes. You can also change the appearance of your items when they fall into the overflow by using the xref:System.Windows.Forms.ToolStripItem.Placement%2A and xref:System.Windows.Forms.ToolStripOverflow.DisplayedItems%2A?displayProperty=nameWithType properties and the xref:System.Windows.Forms.ToolStrip.LayoutCompleted event. If you enlarge the form at either design time or run time, more xref:System.Windows.Forms.ToolStripItems can be displayed on the main xref:System.Windows.Forms.ToolStrip and the xref:System.Windows.Forms.ToolStripOverflowButton might even disappear until you decrease the size of the form.

To enable overflow on a ToolStrip control

To specify overflow behavior of a specific ToolStripItem

See also