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
FormBorderStyle
to NoneNow, the panel serves as the main container and you can change the background as you want and the form serves as the border !
Unfortunately, since the form border is drawn by the Operating System, this is a complicated task. There is no real way around that.
Do NOT click the ProjectDistributor link on the CodePlex page below
The CodePlex Project for Drawing Custom Borders makes this very easy, though. Just build the form using SkinnedForm from that project instead of a standard Form, and it should work - you really don't need to do anything different in your code.
Below "ForeColor" their should be a setting called "FormBorderStyle" You can edit it with that in VisualStudio 2015. Or you can go in control panel path should be something like this "Control Panel\Appearance and Personalization\Personalization" their will be a second setting called "Color" can change that to be what color you want it will change the color of the boarder in all of the programs to the color you set.
Override it with:
protected override void OnPaint(PaintEventArgs e)
{
ControlPaint.DrawBorder(e.Graphics, ClientRectangle, Color.[your_color], ButtonBorderStyle.Solid);
}
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
}