使用C#windows应用窗体时去除里面Button的边框

时间:2024-03-29 20:03:42

标题使用C#windows应用窗体时去除里面Button的边框

1、这里是默认添加的Button,四周有边框
使用C#windows应用窗体时去除里面Button的边框
2、我尝试点击这个Button,边框更明显
使用C#windows应用窗体时去除里面Button的边框
3、而我想要的是这种,点击之后不带边框
使用C#windows应用窗体时去除里面Button的边框
4、具体实施
第一步,打开添加Button的属性界面,在Flatstyle中选择“Flat”;
第二步,在属性界面,BorderSize中把默认值1修改为0;
第三步,在BorderColor中输入0,按下Enter键,会默认修改为0,0,0,0
到这一步就完成了所有的修改。

使用C#windows应用窗体时去除里面Button的边框
希望能帮到你!!!