Results 1 to 2 of 2

Thread: [RESOLVED] Removing Toolbar Icons

  1. #1

    Thread Starter
    Fanatic Member Jumpercables's Avatar
    Join Date
    Jul 2005
    Location
    Colorado
    Posts
    592

    Resolved [RESOLVED] Removing Toolbar Icons

    I have a report that is created in preview mode, and at the top of the page there are a few icons/toolbar options I want to either remove or disable (prefer remove). How can I accomplish this in Access?


    I have attached an image of the tool bar and I want to remove/hide all the icon/options to the right of the Close button.


    Thanks In Advance.
    Attached Images Attached Images  

    C# - .NET 1.1 / .NET 2.0

    "Take everything I say with a grain of salt, sometimes I'm right, sometimes I'm wrong but in the end we've both learned something."
    _____________________
    Regular Expressions Library
    Connection String
    API Functions
    Database FAQ & Tutorial

  2. #2

    Thread Starter
    Fanatic Member Jumpercables's Avatar
    Join Date
    Jul 2005
    Location
    Colorado
    Posts
    592

    Re: Removing Toolbar Icons

    After alot of trial and error I found how to block them.

    VB Code:
    1. Application.CommandBars("Print Preview").Controls("Office Links").Visible = False
    2.     Application.CommandBars("Print Preview").Controls("Database Window").Visible = False
    3.     Application.CommandBars("Print Preview").Controls("New Object").Visible = False
    4.     Application.CommandBars("Print Preview").Controls("Setup").Visible = False
    5.     Application.CommandBars("Print Preview").Controls("Microsoft Access Help").Visible = False

    C# - .NET 1.1 / .NET 2.0

    "Take everything I say with a grain of salt, sometimes I'm right, sometimes I'm wrong but in the end we've both learned something."
    _____________________
    Regular Expressions Library
    Connection String
    API Functions
    Database FAQ & Tutorial

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width