在c# winform项目,目前panel控件中的四条边框的样式为细线黑色。
请问如何将panel控件中的四条边框加粗,且四条边框的颜色为蓝色。
请各位帮忙看看有没有相关的源码或参考资料。谢谢!
在c# winform项目,目前panel控件中的四条边框的样式为细线黑色。
请问如何将panel控件中的四条边框加粗,且四条边框的颜色为蓝色。
请各位帮忙看看有没有相关的源码或参考资料。谢谢!
private void panel1_Paint(object sender, PaintEventArgs e)
{
ControlPaint.DrawBorder(e.Graphics,
this.panel1.ClientRectangle,
Color.Blue,
1,
ButtonBorderStyle.Solid);
}