Results 1 to 5 of 5

Thread: [02/03] Menu Hide

  1. #1

    Thread Starter
    Junior Member
    Join Date
    May 2006
    Posts
    29

    [02/03] Menu Hide

    Is there a way to hide an entire menu bar after your select an item in that same menu bar??

  2. #2
    Raging swede Atheist's Avatar
    Join Date
    Aug 2005
    Location
    Sweden
    Posts
    8,018

    Re: [02/03] Menu Hide

    What kind of control is this menubar? An ordinary MenuStrip?
    Use Hide/Show.
    Rate posts that helped you. I do not reply to PM's with coding questions.
    How to Get Your Questions Answered
    Current project: tunaOS
    Me on.. BitBucket, Google Code, Github (pretty empty)

  3. #3

    Thread Starter
    Junior Member
    Join Date
    May 2006
    Posts
    29

    Re: [02/03] Menu Hide

    For some reason it won't give me a .hide property. I'm not sure if its because i'm trying to hide the menu bar after i select a menu item or not. Is there another way to do this?

  4. #4
    Arabic Poster ComputerJy's Avatar
    Join Date
    Nov 2005
    Location
    Happily misplaced
    Posts
    2,513

    Re: [02/03] Menu Hide

    in 2005
    VB Code:
    1. Me.MainMenuStrip = Nothing
    maybe in 2003 it's
    VB Code:
    1. Me.MainMenu = Nothing
    "I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
    My Blog

  5. #5
    Arabic Poster ComputerJy's Avatar
    Join Date
    Nov 2005
    Location
    Happily misplaced
    Posts
    2,513

    Re: [02/03] Menu Hide

    And you should remove it from the Controls property (probably)
    VB Code:
    1. Me.Controls.Remove(MenuStrip1)
    "I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
    My Blog

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