how to add placeholder in textbox in windows form
private void Form_load(object sender, EventArgs e)
{
textBox.Text = "Place Holder text..."
}
private void textBox_Enter(object sender, EventArgs e)
{
if(textBox.Text == "Place Holder text...")
{
textBox.Text = ""
}
}
private void textBox_Leave(object sender, EventArgs e)
{
if(textBox.Text == "")
{
textBox.Text = "Place Holder text..."
{
}