Menuitem visibility on Windows

aMenuItem.Visible = newBooleanValue

Indicates whether or not the menu item is visible. The default is True. If False, the menu item does not appear and no blank space is for it is in the menu.
This property is not supported on Windows.

Just for curiosity why such feature is not available on Windows ?
Any workarounds for this I need to make a menuitem invisible, thanks

[quote=164270:@Horacio Vilches]aMenuItem.Visible = newBooleanValue

Indicates whether or not the menu item is visible. The default is True. If False, the menu item does not appear and no blank space is for it is in the menu.
This property is not supported on Windows.

Just for curiosity why such feature is not available on Windows ?
Any workarounds for this I need to make a menuitem invisible, thanks[/quote]

I guess if the feature is not available, it is because Windows itself does not support it.

Duplicate the menu bar and simply change it according to your need. For instance, you can have MainMenuBar with all menuitems, and MainMenuBar1 with an item removed.

Then you can do in your window :

self.menubar = MainMenuBar1

You could also just call item.Close().

Yes! Jackpot that worked great!