--- title: "How to: Configure MenuStrip Check Margins and Image Margins" ms.date: "03/30/2017" dev_langs: - "csharp" - "vb" helpviewer_keywords: - "margins [Windows Forms], setting in MenuStrip controls" - "menus [Windows Forms], setting margins" - "MenuStrip control [Windows Forms], configuring check and image margins" ms.assetid: 45a9075d-4bea-4ce2-9b2c-7619aa39f8ce --- # How to: Configure MenuStrip Check Margins and Image Margins You can customize a by setting the and properties in various combinations. ## Example The following code example demonstrates how to set and customize the check margins and image margins. The procedure is the same for a or a . [!code-csharp[System.Windows.Forms.ToolStrip.Misc#60](~/samples/snippets/csharp/VS_Snippets_Winforms/System.Windows.Forms.ToolStrip.Misc/CS/Program.cs#60)] [!code-vb[System.Windows.Forms.ToolStrip.Misc#60](~/samples/snippets/visualbasic/VS_Snippets_Winforms/System.Windows.Forms.ToolStrip.Misc/VB/Program.vb#60)] ## Compiling the Code This example requires: - References to the System, System.Drawing and System.Windows.Forms assemblies. ## See also - - - - [ToolStrip Control](toolstrip-control-windows-forms.md) - [How to: Enable Check Margins and Image Margins in ContextMenuStrip Controls](how-to-enable-check-margins-and-image-margins-in-contextmenustrip-controls.md)