So basically, since I've had the whole week off, I haven't done any of my coursework, left it all till the last day (Today, haha), and I'm in the middle of coding one of the programs for an assignment, which so far works fine, except for one error that I'm trying to avoid, basically there are three text boxes, and a button, what I'm trying to do is disable the button until all three text boxes have something inside them.
So far I've tried this;
Now, when I start it up, the button is disabled all fine and dandy, but when I enter values into the three text boxes, the button does nothing, it just stays disabled...
Any help would be nice on this,
Cheers.
So far I've tried this;
Code:
If txtPrincipal.Text = "" And txtTerm.Text = "" And txtInterestRate.Text = "" Then
cmdCalculate.Enabled = False
Else
cmdCalculate.Enabled = True
End If
Now, when I start it up, the button is disabled all fine and dandy, but when I enter values into the three text boxes, the button does nothing, it just stays disabled...
Any help would be nice on this,
Cheers.