How to change the form border color c#?

后端 未结 5 2223
傲寒
傲寒 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:24

    if (colorDialog1.ShowDialog() == DialogResult.OK)
    {
        string color = Convert.ToString(colorDialog1.Color);
        MessageBox.Show("You change the color " + color);
        this.BackColor = colorDialog1.Color; // BackColor is only accessible for this form
    }
    

提交回复
热议问题