Solved

Autohide Menu Bar

Posted on 2004-09-26
1
276 Views
Last Modified: 2012-05-05
Does anyone have a resource or a working code that will work with VB.NET 2002 to autohide the menu bar on a form?  The most famous use of it I know of is in Windows Media Player under the menu options: View/Full Mode Options
0
Comment
Question by:teamdad
1 Comment
 
LVL 19

Accepted Solution

by:
arif_eqbal earned 100 total points
Comment Utility
See as far as I understand you'll need to set the visible property of the menu Items
You can do it on a Button Click like:

Private Sub CmdMenu_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CmdMenu.Click
        Dim i As Integer
        Static Show As Boolean = False
        Show = Not Show
        For i = 0 To MainMenu1.MenuItems.Count - 1
            MainMenu1.MenuItems(i).Visible = Show
        Next
End Sub

This will toggle between showing the Menu Bar and Hiding it.
If you want you can put the Hide option on a Timer which activates when no menu item has focus and after a delay of a few seconds hides the menu.

To show you can put a small label on mouse over of it you can show the menu bar.

0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Article by: jpaulino
XML Literals are a great way to handle XML files and the community doesn’t use it as much as it should.  An XML Literal is like a String (http://msdn.microsoft.com/en-us/library/system.string.aspx) Literal, only instead of starting and ending with w…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now