Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

disabling a button if textbox is empty c#

private void textBox1_TextChanged(object sender, EventArgs e)
{
button1.Enabled = !string.IsNullOrEmpty(textBox1.Text);
}
 
PREVIOUS NEXT
Tagged: #disabling #button #textbox #empty
ADD COMMENT
Topic
Name
3+3 =