Hide the Toolbar "Menu Bar" When A Specific Form Opens

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Mary Ann

    Hide the Toolbar "Menu Bar" When A Specific Form Opens

    I would like to write code in the On Open property of a form that
    hides the main menu bar toolbar. I have already customized the menu
    bar to all for showing/hiding but have no clue how to write the code
    in the form.

    Is it even possible to do this? If so, how?

    Thanks!
  • Deano

    #2
    Re: Hide the Toolbar "Menu Bar" When A Specific Form Opens

    MGFoster wrote:[color=blue]
    >
    > If you mean the menus "File, Edit, View,..." you'll have to use the
    > CommandBars object. I've been able to hide specific menu items (File,
    > Edit, etc.) on the main menu bar by using this:
    >
    > CommandBars("Me nu Bar").Controls( "File").Vis ible = False
    >
    > Besides unchecking the "Allow Full Menuss" in the Tools > Startup
    > dialog box, which only hids some file options, I haven't found a way
    > to hide the whole menu bar.[/color]

    Can't this be done by inserting =1 in the Menu Bar property of a form? I
    don't want *any* menus to be displayed when some of my forms are displayed.
    This accomplishes that.




    Comment

    Working...