mirror of
https://github.com/Stone-Red-Code/docs-desktop.git
synced 2026-09-08 16:06:07 +02:00
* Merge winforms framework content to working branch (#14) * Breadcrumb / TOC / Move net5 to net folder (#15) * change path from net5 to net * Mess with bread/toc * Mess with bread/toc * Mess with bread/toc * Mess with bread/toc * Mess with bread/toc * Mess with bread/toc * Mess with bread/toc * Mess with bread/toc * Mess with bread/toc * Mess with bread/toc * Mess with bread/toc * Mess with bread/toc * Mess with bread/toc * Mess with bread/toc * Add .net 5 winforms placeholder article (#16) * added some metadata and adjusted net5 placeholder * corrections * corrections * corrections * Test1 * Swapping landing page vs concept * fix links * Fix links * Fix desc
2.0 KiB
2.0 KiB
title, ms.date, dev_langs, helpviewer_keywords, ms.assetid
| title | ms.date | dev_langs | helpviewer_keywords | ms.assetid | |||||
|---|---|---|---|---|---|---|---|---|---|
| How to: Configure ContextMenuStrip Check Margins and Image Margins | 03/30/2017 |
|
|
3391c4c2-0c9e-4aa4-9492-13ff7644bdf2 |
How to: Configure ContextMenuStrip Check Margins and Image Margins
You can customize a xref:System.Windows.Forms.ContextMenuStrip by setting the xref:System.Windows.Forms.ToolStripDropDownMenu.ShowImageMargin%2A and xref:System.Windows.Forms.ToolStripDropDownMenu.ShowCheckMargin%2A properties in various combinations.
Example
The following code example demonstrates how to set and customize the xref:System.Windows.Forms.ContextMenuStrip check and image margins.
[!code-csharpSystem.Windows.Forms.ToolStrip.Misc#1]
[!code-vbSystem.Windows.Forms.ToolStrip.Misc#1]
[!code-csharpSystem.Windows.Forms.ToolStrip.Misc#60]
[!code-vbSystem.Windows.Forms.ToolStrip.Misc#60]
Compiling the Code
This example requires:
- References to the System.Design, System.Drawing, and System.Windows.Forms assemblies.