一 : 不显示标题栏也无边框:
方法1:属性里直接设置
方法2:手写代码(两种效果一样)
this.FormBorderStyle = FormBorderStyle.None;
二 : 不显示标题栏,但有边框
在属性里设置(或直接写代码实现)
FormBorderStyle 设置想要的边框类型
ControlBox = false
MinimizeBox = falseMaximizeBox = falseShowInTaskBar = falseText = ""本文共 298 字,大约阅读时间需要 1 分钟。
一 : 不显示标题栏也无边框:
方法1:属性里直接设置
方法2:手写代码(两种效果一样)
this.FormBorderStyle = FormBorderStyle.None;
二 : 不显示标题栏,但有边框
在属性里设置(或直接写代码实现)
FormBorderStyle 设置想要的边框类型
ControlBox = false
MinimizeBox = falseMaximizeBox = falseShowInTaskBar = falseText = ""转载于:https://www.cnblogs.com/zhoushuang0426/p/10748547.html