private void textBox1_TextChanged(object sender, EventArgs e) { button1.Enabled = !string.IsNullOrEmpty(textBox1.Text); }