How to remove this strange visual artifact in the corner of ToolStrip Winforms control?

前端 未结 3 1675
礼貌的吻别
礼貌的吻别 2021-02-07 10:53

Here is the picture that shows the problem. Take a look at the bottom right corner.

Anyone knows how to get rid of it?

Setting LayoutStyle to

3条回答
  •  北荒
    北荒 (楼主)
    2021-02-07 11:01

    In the properties bar, set "RenderMode" to "System" or use

    .RenderMode = System.Windows.Forms.ToolStripRenderMode.System;
    

    Doing this will change the .BackColor to "Control" but you can change that after if you want.

提交回复
热议问题