form颜色怎么设置的
1个回答
展开全部
C#
有两种办法
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);
有两种办法
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);
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询