有两种办法
1.代码中加 form1.FormBorderStyle = FormBorderStyle.None//无悔孝边框
2.在窗本属性碧备稿栏找FormBorderStyle选择none
private void Form1_Load(object sender, 滚档EventArgs e)
{
this.FormBorderStyle = FormBorderStyle.None//无边框
}
private void Form1_Paint(object sender, PaintEventArgs e)
{
e.Graphics.DrawRectangle(Pens.DarkOliveGreen, 0, 0, this.Width - 1, this.Height - 1)
}
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)