You can tailor your menu system by adding cleanup code to it. Cleanup code typically contains code that initially enables or disables menus and menu items. When you generate and run the menu program, setup code and menu definition code is processed before cleanup code.
To add cleanup code to a menu system
From the View menu, choose General Options.
In the Menu Code area, select Cleanup and then choose OK.
In the code window, type the appropriate cleanup code.
Your changes are saved when you close the Menu Designer.