System.Windows.Forms.ToolStripButton Class

Represents a selectable System.Windows.Forms.ToolStripItem that can contain text and images.

See Also: ToolStripButton Members


public class ToolStripButton : ToolStripItem


Use System.Windows.Forms.ToolStripButton to create a toolbar button that supports both text and images. Use the ToolStripItem.ImageAlign and ToolStripItem.TextAlign properties to get or set the positioning of System.Windows.Forms.ToolStripButton images and text.

You can display a System.Windows.Forms.ToolStripButton with various border styles, and you can use it to represent and activate operational states. You can also define it to have the focus by default.

Although System.Windows.Forms.ToolStripButton replaces and extends the System.Windows.Forms.ToolBarButton control of previous versions, System.Windows.Forms.ToolBarButton is retained for both backward compatibility and future use.


Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions:
Since: .NET 2.0