I have made a small simple c# form application in which I have added a user level setting of colour type(with default value red) and added a button on form. When I click on the button the back ground colour of form will changes to red and if a press the button again its colour changes to blue.When I close the window form background colour will saved and next time saved colour is loaded. I use the following line to save the colour can any one tell me the file in which Visual Studio save this colour. ?
private void button1_Click(object sender, EventArgs e)
{
if (this.BackColor == Color.Blue)
{
this.BackColor = Color.Red;
Properties.Settings.Default.backcolor = Color.Red;
Properties.Settings.Default.Save();
}
else
{
this.BackColor = Color.Blue;
Properties.Settings.Default.backcolor = Color.Blue;
Properties.Settings.Default.Save();
}
}