Impossible to disable an entire Menu ?


I tried to disable an entire MenuItem (in App.EnableMenuItems) in one line:

UtilitiesMenu.Enabled = False

but it does not do it.

On the other hand, disabling a MenuItem (from UtilitiesMenu) works fine.

And this is not really fine for me: I have to disable a bunch of MenuItems instead of three or four menus.

Copy / Paste keys will be hot once I will finish to add all these rejection stuff (call the disable method for all these MenuItems if allowed).

Is it bad to disable a Menu from the MenuBar ?
(If I ask the question because I do not think so, but anyway, it may be bad…)

Not possible, you will have to loop over the items and disable them individually.