Disable MainMenu

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I used MID forms, when a menu is called, I don't want any menus will be
called until the current one is completed. I'd like to know the way to
"disable" MainMenu. I don't want to use Me.Enabled = false, bucause it makes
a drawback on the child form.

Anyone knows that? Thanks in advance.
 
Li Pang said:
I used MID forms, when a menu is called, I don't want any menus will be
called until the current one is completed. I'd like to know the way to
"disable" MainMenu. I don't want to use Me.Enabled = false, bucause it
makes
a drawback on the child form.

\\\
Me.Menu = Nothing
///
 
Hi Herfried K. Wagner,

Me.Menu = Nothing disappear the menu, but I only want to disable the menu
because I still want to use the menu after disable it.
 
Li Pang said:
Me.Menu = Nothing disappear the menu, but I only want to disable the menu
because I still want to use the menu after disable it.

You can use it by reassigning the mainmenu to the 'Menu' property. If you
only want to disable the menu, take a look at this procedure:

\\\
Private Sub EnableMenu(ByVal Enabled As Boolean)
For Each mi As MenuItem In Me.Menu.MenuItems
mi.Enabled = Enabled
Next mi
End Sub
///
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top