BrasilianGuy
IS-IT--Management
In my form I have a text box with some info inside. When user clicks in the text box it changes its color to display that this bos has been picked and user click on it again it goes to the previous mode.
here is the code:
private void TextBox1_Click(object sender, EventArgs e)
{
if (this.textBox1.BackColor == Color.FromKnownColor(KnownColor.LightSalmon))
this.textBox1.BackColor = Color.FromKnownColor(KnownColor.White);
else
this.textBox1.BackColor = Color.FromKnownColor(KnownColor.LightSalmon);
}
I want to save this information when the text box is picked or unpicked. So when user close the application the information is saved and when application is called the textbox will display as previouly.
thanks in advance
here is the code:
private void TextBox1_Click(object sender, EventArgs e)
{
if (this.textBox1.BackColor == Color.FromKnownColor(KnownColor.LightSalmon))
this.textBox1.BackColor = Color.FromKnownColor(KnownColor.White);
else
this.textBox1.BackColor = Color.FromKnownColor(KnownColor.LightSalmon);
}
I want to save this information when the text box is picked or unpicked. So when user close the application the information is saved and when application is called the textbox will display as previouly.
thanks in advance