VLButtonBar Reference

Read/Write Property ShowCloseButton

See Also See Also Applies To Applies To

Retuns or sets if a close button should be displayed in the control's caption bar.

 

Syntax

object.ShowCloseButton[=bool]

 

The ShowCloseButton property syntax has these parts:

Part Description
Object An object expression that evaluates to the objects in Applies to list.
Value A boolean expression specifying if a close button should be displayed in the control's caption bar as described in Settings .

 

Settings

The settings for bool are:

Setting Description
Constant True (default) Display a close button in the control's caption bar.
Constant False Don't dsplay a close button in the control's caption bar.

 

Remarks

ShowCloseButton setting will be ignored if caption bar is not being displayed by setting ShowCaptionbar to False .

Please note that clicking on the close button will not automatically hide the control, instead it will just trigger CloseButtonClick event. You will need to write code in this event to hide the button bar control.