I have this following code and don't know how to go further. I simply want to update the default text of the textBox in the Form_Load() method, when I'm writing a new text on it, and clicking on the "Save" button.
Thanks in advance
private void Form7_Load(object sender, EventArgs e)
{
textBox1.ForeColor = System.Drawing.Color.Gray;
textBox1.Text =
}
private void textBox1_Click(object sender, EventArgs e)
{
textBox1.Clear();
textBox1.ForeColor = textBox1.ForeColor = SystemColors.WindowText;
}
private void buttonSave_Click(object sender, EventArgs e)
{
string def = ret();
}
private string ret()
{
string text = textBox1.Text;
return text;
}