This documentation is archived and is not being maintained.

Visual Basic Reference

Visual Studio 6.0

CommandButton Control

See Also    Example    Properties    Methods    Events

Use a CommandButton control to begin, interrupt, or end a process. When chosen, a CommandButton appears pushed in and so is sometimes called a push button.




To display text on a CommandButton control, set its Caption property. A user can always choose a CommandButton by clicking it. To allow the user to choose it by pressing ENTER, set the Default property to True. To allow the user to choose the button by pressing ESC, set the Cancel property of the CommandButton to True.