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
Solved

Autohide Menu Bar

Posted on 2004-09-26
1
278 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
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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

This article explains how to create and use a custom WaterMark textbox class.  The custom WaterMark textbox class allows you to set the WaterMark Background Color and WaterMark text at design time.   IMAGE OF WATERMARKS STEPS Create VB …
Well, all of us have seen the multiple EXCEL.EXE's in task manager that won't die even if you call the .close, .dispose methods. Try this method to kill any excels in memory. You can copy the kill function to create a check function and replace the …
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

861 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