--- title: "How to: Disable ToolStripMenuItems Using the Designer" ms.date: "03/30/2017" helpviewer_keywords: - "ToolStripMenuItems [Windows Forms], disabling in designer" - "MenuStrip control [Windows Forms], disabling menu items in designer" - "menu items [Windows Forms], disabling" - "menus [Windows Forms], disabling items" ms.assetid: 985e311e-7d67-4205-b5a3-d045b68a4a03 --- # How to: Disable ToolStripMenuItems Using the Designer You can limit or broaden the commands a user may make by enabling and disabling menu items in response to user activities. Menu items are enabled by default when they are created, but this can be adjusted through the property. You can manipulate this property at design time in the **Properties** window or programmatically by setting it in code. For more information, see [How to: Disable ToolStripMenuItems](how-to-disable-toolstripmenuitems.md). ## To disable a menu item at design time 1. With the menu item selected on the form, set the property to `false`. > [!TIP] > Disabling the first or top-level menu item in a menu disables all the menu items contained within the menu. Likewise, disabling a menu item that has submenu items disables the submenu items. If all the commands on a given menu are unavailable to the user, it is considered good programming practice to both hide and disable the entire menu, as this presents a clean user interface. You should both hide and disable the menu, as hiding alone does not prevent access to a menu command via a shortcut key. Set the property of a top-level menu item to `false` to hide the entire menu. ## See also - - - [How to: Hide ToolStripMenuItems](how-to-hide-toolstripmenuitems.md) - [MenuStrip Control Overview](menustrip-control-overview-windows-forms.md)