ToolBarButton.ToolTipText Property


Gets or sets the text that appears as a ToolTip for the button.

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

member ToolTipText : string with get, set

Property Value

Type: System.String

The text that is displayed when the mouse pointer moves over the toolbar button. The default is an empty string ("").

To enable the display of the ToolTip text when the mouse pointer is moved over the button, set the ShowToolTips property of the button's parent ToolBar to true.

The following code example creates a ToolBar and three ToolBarButton controls, assigns the buttons to the toolbar, and sets some of the buttons' common properties. This code requires that a MenuItem, ImageList, ToolTip and a Form have been created and the ImageList has at least one Image assigned to it.

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

.NET Framework
Available since 1.1
Return to top