ButtonCount Property (AToolBar)

Returns the number of buttons in the object.

Syntax

[ lButtonCount = ] Object.ButtonCount

The ButtonCount property syntax has the following parts:

 

Name

Type

Description

Object

AToolBar

AToolBar control

lButtonCount

Long

The number of buttons in the object.

Example

The following statements disable all buttons:

lButtonCount=tbr.ButtonCount

  for lButton=0 To (lButtonCount-1)

  tbr.Buttons(lButton).Enabled=False

  Next

Applies to

AToolBar

See Also

ButtonHeight, Buttons, ButtonWidth, InsertButton, MoveButton, OnButtonClick, OnButtonDblClick, RemoveButton