Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Autohide Menu Bar

Posted on 2004-09-26
1
Medium Priority
?
293 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…

610 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