Results 1 to 5 of 5
  1. #1
    Join Date
    Aug 2004
    Posts
    28

    Question Unanswered: how to remove the default menu in start menu

    hei hei
    I have removes all options in StartUP that it is not showing any menu bars or databse window.
    but only one default menu bar is comming.
    please help me, if any one knows it.
    thank you.
    Kiran .
    Attached Thumbnails Attached Thumbnails formshot.JPG  
    Last edited by kirankarnati; 10-04-04 at 09:29.
    "One who Gives when u ask is Ur MOTHER but, one who always tries to know your needs and Gives what ever one can Give for U is Ur FRIEND.( SO Try to BE and get such a friend GOOD LUCK MY FRIEND )"

  2. #2
    Join Date
    Dec 2002
    Location
    Préverenges, Switzerland
    Posts
    3,740
    ooops - duplicate post.
    Last edited by izyrider; 10-04-04 at 13:27.
    currently using SS 2008R2

  3. #3
    Join Date
    Dec 2002
    Location
    Préverenges, Switzerland
    Posts
    3,740
    try:

    make yourself a menu
    View ¦ Toolbars ¦ Customize ¦ Toolbars ¦ New
    it MUST be Type: MenuBar

    add any one junk item to the menu - you don't care which item since you are never going to use it.

    Tools ¦ Startup ¦ and set the menubar to your "phoney" new menu.

    Private Sub Form_Load()
    On Error GoTo err_Form_Load
    Dim cbar As CommandBar
    Set cbar = Application.CommandBars.ActiveMenuBar
    cbar.Visible = False
    exit_Form_Load:
    Set cbar = Nothing
    Exit Sub
    err_Form_Load:
    MsgBox Err.Number & ": " & Err.Description, vbCritical, "ERROR frmMain_Load"
    Resume exit_Form_Load
    End Sub

    ...and you probably need the Office reference set to be able to play with CommandBars

    izy
    currently using SS 2008R2

  4. #4
    Join Date
    Feb 2004
    Location
    New Zealand
    Posts
    1,424
    Provided Answers: 8
    That bit easy

    in the form properies

    in the menu bar set it to =1

    and must be done to each screen that is showen
    Attached Thumbnails Attached Thumbnails nomenu.jpg  
    Last edited by myle; 10-04-04 at 23:53.
    hope this help

    See clear as mud


    StePhan McKillen
    the aim is store once, not store multiple times
    Remember... Optimize 'til you die!
    Progaming environment:
    Access based on my own environment: DAO3.6/A97/A2000/A2003/A2007/A2010
    VB based on my own environment: vb6 sp5
    ASP based on my own environment: 5.6
    VB-NET based on my own environment started 2007
    SQL-2005 based on my own environment started 2008
    MYLE
    YOUR PASSWORD IS JUST LIKE YOUR TOOTHBRUSH DON'T SHARE IT.

  5. #5
    Join Date
    Aug 2004
    Posts
    28

    Thumbs up thank you and some other solution as well....

    If you put this code in the on open event of the start up form then it is automatically removes all bars of access.
    Its working great.
    Any way thanks a lot for all help.

    ' Disable all Menus and Toolbars
    Dim i As Integer
    For i = 1 To CommandBars.Count
    CommandBars(i).Enabled = False
    Next i
    "One who Gives when u ask is Ur MOTHER but, one who always tries to know your needs and Gives what ever one can Give for U is Ur FRIEND.( SO Try to BE and get such a friend GOOD LUCK MY FRIEND )"

Posting Permissions

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