如何删除的ToolStrip的WinForms控制的角落里这个陌生的视觉假象? [英] How to remove this strange visual artifact in the corner of ToolStrip Winforms control?

查看:136
本文介绍了如何删除的ToolStrip的WinForms控制的角落里这个陌生的视觉假象?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

下面是显示了问题的图像。看看右下角。

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

任何人知道如何摆脱它?

Anyone knows how to get rid of it?

设置的LayoutStyle VerticalStackWithOverflow 修复它,而且水平中心的项目,我不想要的。

Setting LayoutStyle to VerticalStackWithOverflow fixes it but also centers the items horizontally which I don't want.

我只是想喜欢在PIC垂直堆叠,但没有这种黑线在右下角。

I just want a vertical stack like in the pic, but without that black line in the bottom right corner.

推荐答案

在属性栏中设置RenderMode为系统或使用

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

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

这样做将改变.BackColor控制,但你可以,如果你想,经过改变。

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

这篇关于如何删除的ToolStrip的WinForms控制的角落里这个陌生的视觉假象?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆