--- title: "How to: Manage ToolStrip Overflow" ms.date: "03/30/2017" dev_langs: - "csharp" - "vb" helpviewer_keywords: - "ToolStrip control [Windows Forms], managing overflow" - "toolbars [Windows Forms], managing overflow" - "examples [Windows Forms], toolbars" - "CanOverflow property" ms.assetid: fa10e0ad-4cbf-4c0d-9082-359c2f855d4e --- # How to: Manage ToolStrip Overflow in Windows Forms When all the items on a control do not fit in the allotted space, you can enable overflow functionality on the and determine the overflow behavior of specific s. When you add s that require more space than is allotted to the given the form's current size, a automatically appears on the . The appears, and overflow-enabled items are moved into the drop-down overflow menu. This allows you to customize and prioritize how your 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 and properties and the event. If you enlarge the form at either design time or run time, more s can be displayed on the main and the might even disappear until you decrease the size of the form. ## To enable overflow on a ToolStrip control - Ensure that the property is not set to `false` for the . The default is `True`. When is `True` (the default), a is sent to the drop-down overflow menu when the content of the exceeds the width of a horizontal or the height of a vertical . ## To specify overflow behavior of a specific ToolStripItem - Set the property of the to the desired value. The possibilities are `Always`, `Never`, and `AsNeeded`. The default is `AsNeeded`. ```vb toolStripTextBox1.Overflow = _ System.Windows.Forms.ToolStripItemOverflow.Never ``` ```csharp toolStripTextBox1.Overflow = _ System.Windows.Forms.ToolStripItemOverflow.Never; ``` ## See also - - - - - [ToolStrip Control Overview](toolstrip-control-overview-windows-forms.md) - [ToolStrip Control Architecture](toolstrip-control-architecture.md) - [ToolStrip Technology Summary](toolstrip-technology-summary.md)