Hidden menu

I have a hidden menu that I set visible to false

menBroker.Visible = False

But there is a little gap where that menu should be and if you click it, the menu still drops down showing the submenu items.
The whole point was to get rid of the menu. It is available in a premium edition of our software but not in the basic versions.

How do I make the dropdown not even happen so that no one can get to the submenu items?

Use MenuItem.Close to remove it completely when you detect which version you have.

Ahh yes that worked. I found another place I used that but forgot about it.
If you do this you just have to make sure runtime code does not try to enable those menuitems.
I just do all this at startup when I figure the version and it’s now working!

Thanks Timmy!