How to “Remove” a Control from the Toolbar

·       Application-Level: If there are toolbar controls that you do not wish to display with any of your forms in an application, set the Visible property to .F. for the controls in the Toolbar_All class in the application's PROFORMS.VCX.

·       Form-Level: If there are toolbar controls that you do not wish to display on a particular form in an application, you can add code to the Init event of the form to make the controls nonvisible. Be sure to use scope resolution when you add code to the Init method.

DO DEFAULT()

_SCREEN.oApp.oToolbar.cmdDelete.visible = .F.

More:

Toolbar Menu Options and Hotkeys