MenuStrip.CanOverflow Property


Gets or sets a value indicating whether the MenuStrip supports overflow functionality.

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

public bool CanOverflow { get; set; }

Property Value

Type: System.Boolean

true if the MenuStrip supports overflow functionality; otherwise, false. The default is false.

The overflow feature moves menu items to a drop-down menu when there is not enough room to display them in a MenuStrip. When you set the CanOverflow property to true, you must also enable overflow for specific menu items by setting the ToolStripMenuItem.Overflow property. By default, menu items are not displayed if they cannot fit within the available space.

.NET Framework
Available since 2.0
Return to top