VLButtonBar Reference

Read/Write Property SelectedButton

See Also See Also Applies To Applies To

Returns or sets the current selected button of a VLButtonBar control.

 

Syntax

Set object.SelectedButton[=aButton]

 

The SelectedButton property syntax has these parts:

Part Description
Object An object expression that evaluates to a VLButtonBar.
aButton An object of type CButton specifying the button to be marked as selected.

 

Remark

If the button being marked as selected does not belong to the current active group, control will automatically change the current active group before marking specified button as selected.

Button selection can be removed by setting SelectedButton property to Nothing.

When ButtonClickBehavior is set to vlCommandStyle, SelectedButton will automatically revert to Nothing after raising SelectedButtonChanged and ButtonClick changed events.