Removes a button from the object.
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. |
This method applies only to objects which can be visible at run time.
To remove all AToolBarButton objects, use the Clear method.
The following example will remove the seventh AToolBarButton from the AToolBar:
tbr1.RemoveButton( 6 )