ToolStrip::CanOverflow Property

 

Gets or sets a value indicating whether items in the ToolStrip can be sent to an overflow menu.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public:
property bool CanOverflow {
	bool get();
	void set(bool value);
}

Property Value

Type: System::Boolean

true to send ToolStrip items to an overflow menu; otherwise, false. The default value is true.

Set the CanOverflow property to true to send a ToolStrip item to an overflow menu when the item's content exceeds the width of the toolbar.

System_CAPS_noteNote

If there are more overflow items than can be displayed on the form, use the ToolStrip Items Collection Editor to manage this situation.

The following code example demonstrates the syntax for setting common ToolStrip properties, including the CanOverflow property.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0
Return to top
Show: