.topic ctrl.button .title CommandButton .toc 1 CommandButton .index CommandButton .index Button .index Click .h1 CommandButton VB Equivalent: CommandButton -- DVX Widget: button | Name Prefix: Command A push button that triggers an action when clicked. Created with wgtButton(parent, text). .h2 Type-Specific Properties .table Property Type Description -------- ------ ------------------------------------------- Caption String The text displayed on the button. Use & for accelerator keys (e.g. "&OK"). .endtable No additional type-specific properties beyond common properties and Caption. Default Event: Click .h2 Example .code Begin Form Form1 Caption = "Button Demo" Begin CommandButton Command1 Caption = "&Click Me!" End End Sub Command1_Click () MsgBox "Button was clicked!" End Sub .endcode .link ctrl.common.props Common Properties, Events, and Methods