3
When to write in the textbox, the button will turn on, but when you have nothing on textbox will turn off. I was able to make the button method turn on but could not do the turn off if the textbox is void
private void textBox1_TextChanged(object sender, EventArgs e)
{
if (txt.Text == null)
{
bt.Enabled = false;
}
else
{
bt.Enabled = true;
}
}