CommandBarButtons.Add
Syntax:
Parameters:
<Name> (optional)
Button name should follow name rules. It is unique within a command bar.
<ButtonType> (optional)
Interface button type(separator, action, popup).
Default value: Splitter.
<Text> (optional)
Button text.
<Action> (optional)
Action that should be performed when user clicks this button. For Separator and Popup button types you do not have to specify an action.
Returned value:
Description:
Availability:
Example:
CP = Controls.CommandBar; NewAction = New Action("MyProcedureInFormModule"); ButtonType = CommandBarButtonType.Action; NewButton = CP.Buttons.Add("Action1", ButtonType, , NewAction); |