RemoveButton Method (AToolBar)

Removes a button from the object.

Syntax

Object.RemoveButton ( vKey )

The RemoveButton method syntax has the following parts:

 

Name

Type

Description

Object

AToolBar

AToolBar control

vKey

Val Variant

An integer (Index property) or unique string (Name property) that specifies the button to be removed.

Comments

This method applies only to objects which can be visible at run time.

To remove all AToolBarButton objects, use the Clear method.

Example

The following example will remove the seventh AToolBarButton from the AToolBar:

tbr1.RemoveButton( 6 )

Applies to

AToolBar

See Also

Clear, InsertButton, MoveButton