I'm trying to get a button to be disabled when the program starts, and only when enabled The text is present in the special text box.
This is the code I got:
If quantityTextBox.Text = "" then clear button. Enabled = false or clear button Competent = true end if
The only issue I am doing is finding out how it has been put in sub.
Add it to the converted event for the text box. V.S.S. In the form designer double click the text box and the event handler is started and automatically leaves you in the codebind.
You do not even need the statement. You can do this on one line like this:
clearButton.Enabled = Quantity Text Box. Text & lt; & Gt; ""
No comments:
Post a Comment