?
Solved

Autohide Menu Bar

Posted on 2004-09-26
1
Medium Priority
?
287 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 19

Accepted Solution

by:
arif_eqbal earned 400 total points
ID: 12157550
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

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Suggested Courses
Course of the Month14 days, 6 hours left to enroll

800 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