I'm doing an interface in Visual Studio 2015, how do I perform an event only once?
For example:
private void textBox5_Click(object sender, EventArgs e)
{
textBox5.ForeColor = Color.Black;
textBox5.SelectAll();
textBox5.Text = "";
}
When the user clicks on the text box, the color changes to black, and then selects everything and cleans up.
But I want this to happen only once, that is, if the user clicks again, do nothing.