C
C#2y ago
yumo

❔ EVENT ON TEXT CHANGED

private void txtRH_TextChanged(object sender, EventArgs e)
{

}
private void txtRH_TextChanged(object sender, EventArgs e)
{

}
How can i make a button disable after the textbox is field?
4 Replies
Angius
Angius2y ago
If the text length is >0, disable the button If it's <=0, enable it
PatrickG
PatrickG2y ago
private void txtRH_TextChanged(object sender, EventArgs e) { yourButton.enabled = (yourTextbox.Text == "") }
yumo
yumo2y ago
thank you!
Accord
Accord2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.