Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

Conditionally hide menu bar

Hello

I have created a form with multiple frames. The first frame is a welcome cum login page. When you click the next button the program will hide the first frame and show the next frame in which i have many text boxes to calculate something. Now I have embedded the menu bar in it. What I want is the menu bar should not show up when the form loads. When I click the next button for the next frame then only i want to show the menu bar. Is there any way to do this.

Otherwise in my welcome page the nice picture i have shown is destroyed and the meaning of my login system is wasted. Please help me!!

Amitava
[637 byte] By [tava.amitava] at [2007-11-11 10:25:56]
# 1 Re: Conditionally hide menu bar
Amitava: Please do not post new questions as replies to existing threads. Rather than clicking the "Post Reply" button on a thread, please click the "New Thread" button in the forum to which you would like to post your question. Thank you!

You may hide the menu bar by setting the Visible property of all the top-level menus to False. For example:

Private Sub ShowMenus(ByVal Show As Boolean)
mnuFile.Visible = Show
mnuEdit.Visible = Show
mnuView.Visible = Show
mnuHelp.Visible = Show
End Sub

You would call "ShowMenus False" to hide the menu bar when your Welcome frame is displayed, and "ShowMenus True" to display the menu when the next frame is displayed.
Phil Weber at 2007-11-11 17:22:39 >
# 2 Re: Conditionally hide menu bar
Thanks a lot for the solution and from now on I will definitely follow the procedure of creating new threads.
tava.amitava at 2007-11-11 17:23:40 >