Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Saving info

Status
Not open for further replies.

BrasilianGuy

IS-IT--Management
Oct 27, 2005
25
US
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top