Knowledge Base 
Removing the "Toolbar Options" button from a CommandBar 
 Sunday, April 28, 2024

Removing the "Toolbar Options" button from a CommandBar

The "Toolbar Options" button is the button displayed at the end of a commandbar and it displays a list of the buttons on the commandbar so that the user can easily hide or show them.

You can hide the "Toolbar Options" button for commandbars on an individual basis. To do this, you need to set the value of the HideOptionsButton property for each individual commandbar. The code below (in the Init event of the form) will hide the "Toolbar Options" button for the Standard commandbar:

ThisForm.cmdBarStandard.HideOptionsButton = .F.
ThisForm.CBM.InitCommandBars()
The result is show below: