Description
Removes the application button from the RibbonBar control.
Applies to
RibbonBar controls
Syntax
controlname.RemoveApplicationButton ( )
Return value
Integer.
Returns 1 if it succeeds and -1 if an error occurs.
Usage
Only one application button is allowed in a ribbon bar, therefore, you can directly get (set or remove) the application button without needing to insert the application button first or identify the application button by its handle.
Examples
This example sets the Text property of the application button to "MyApp", and then removes the application button.
Integer li_Return RibbonApplicationButtonItem lr_AppButton lr_AppButton.Text = "MyApp" li_Return = rbb_1.SetApplicationButton(lr_AppButton) li_Return = rbb_1.RemoveApplicationButton()
See also