Do you know how to remove margin (probably the one for image and check box on the left and right) of the submenu in MenuStri? In MSDN article there is explained how to remove it from context menus. It is written that I should do it the same way in MenuStrip but MenuStrip do not have ShowImageMargin nor ShowCheckMargin. Maybe I'm missing something. Can you help?
相关问题
- Sorting 3 numbers without branching [closed]
- Graphics.DrawImage() - Throws out of memory except
- Why am I getting UnauthorizedAccessException on th
- 求获取指定qq 资料的方法
- How to know full paths to DLL's from .csproj f
Very similar, but instead of using "ContextMenuStrip" (which is used in your MSDN article), you have to use "ToolStripDropDownMenu". This way:
For example, if you want to remove all image margins from your menubar called "menuStrip1", add this code to your form initialization routine: