C#中如何去掉GroupBox中的边框
展开全部
private void panel2_Paint(object sender, PaintEventArgs e)
{
ControlPaint.DrawBorder(e.Graphics,
this.panel2.ClientRectangle,
Color.Black,
1,
ButtonBorderStyle.Solid,
Color.Black,
1,
ButtonBorderStyle.Solid,
Color.Black,
1,
ButtonBorderStyle.Solid,
Color.Black,
1,
ButtonBorderStyle.Solid);
}
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询