Export (0) Print
Expand All
D
Expand Minimize

Visual Basic: Windows Controls

Visual Studio 6.0

Description Property (Button Object)

See Also    Example    Applies To

Returns or sets the text for a Button object's description, which is displayed in the Customize Toolbar dialog box.

Syntax

object.Description [= string]

The Description property syntax has these parts:

Part Description
object An object expression that evaluates to a Button object.
string The string displayed in the Customize Toolbar dialog box when the button is selected.

Remarks

At run time, the Customize Toolbar dialog box can be invoked either by a user double-clicking the Toolbar control or programmatically using the Customize method. In either case, when the user selects a button in the dialog box, a description of the button is displayed in the lower-left corner of the dialog box. The text for that description is set with the Description property.

You can set the Description text when you add a Button object, as follows:

Dim btnX As Button
' Add a button with the Key "save."
Set btnX = Toolbar1.Buttons.Add(,"save")
btnX.Description = "Save a file."
Show:
© 2014 Microsoft