Click to See Complete Forum and Search --> : How to enable a text box with a button


dejan1
May 3rd, 2008, 12:18 PM
If a text box is disabled (and is grayed out), how can I enable it with a button click?


private void button1_Click(object sender, EventArgs e)
{

}

nelo
May 3rd, 2008, 02:34 PM
Seems quite easy. Try this...

textBox.Enabled = true