How to change the form border color c#?

后端 未结 5 2217
傲寒
傲寒 2020-12-06 06:54

I would like to change window form border color (the border with the form title). The example I found in codeplex is too much and confusing. Can any help me on something sim

5条回答
  •  天命终不由人
    2020-12-06 07:14

    Override it with:

    protected override void OnPaint(PaintEventArgs e)
    {
        ControlPaint.DrawBorder(e.Graphics, ClientRectangle, Color.[your_color], ButtonBorderStyle.Solid);
    }
    

提交回复
热议问题