How to Disable Toolbar Controls for a Form

Forms based on the Form_Toolbar class have custom properties that allow you to select whether a particular Toolbar control should be enabled for a form.

lAllow Properties: These custom properties for Toolbar controls have names that begin with “lallow” and end with a word that identifies the control (e.g., lallowdelete).

If you have a form for which you do not want to enable a particular Toolbar control, you can disable the control’s display by setting the control’s lallow property to .F.

More:

How to "Remove" a Control from the Toolbar