--- title: "How to: Hide ToolStripMenuItems Using the Designer" ms.date: "03/30/2017" helpviewer_keywords: - "ToolStripMenuItems [Windows Forms], hiding menu items in designer" - "MenuStrip control [Windows Forms], hiding menu items in designer" - "menu items [Windows Forms], hiding" ms.assetid: 8f1b057e-3d8a-4f11-88df-935f7b29a836 --- # How to: Hide ToolStripMenuItems Using the Designer Hiding menu items is a way to control the user interface (UI) of your application and restrict user commands. Often, you will want to hide an entire menu when all of the menu items on it are unavailable. This presents fewer distractions for the user. Furthermore, you might want to both hide and disable the menu or menu item, as hiding alone does not prevent the user from accessing a menu command by using a shortcut key. For more information on disabling menu items, see [How to: Disable ToolStripMenuItems Using the Designer](how-to-disable-toolstripmenuitems-using-the-designer.md). ## To hide a top-level menu and its submenu items 1. Select the top-level menu item and set its or property to `false`. When you hide the top-level menu item, all menu items within that menu are also hidden. If you click somewhere other than on the after setting to `false`, the entire top-level menu item and its submenu items disappear from your form, thus showing you the run-time effect of your action. To display the hidden top-level menu item at design time, click on the in the **Component Tray**, in **Document Outline**, or at the top of the property grid. > [!NOTE] > You will rarely hide an entire menu except for multiple document interface (MDI) child menus in a merging scenario. ## To hide a submenu item 1. Select the submenu item and set its property to `false`. When you hide a submenu item, it remains visible on your form at design time so that you can easily select it for further work. It will actually be hidden at run time. ## See also - - - - - - [MenuStrip Control Overview](menustrip-control-overview-windows-forms.md) - [How to: Disable ToolStripMenuItems Using the Designer](how-to-disable-toolstripmenuitems-using-the-designer.md)