by jblues on Wed May 04, 2011 6:29 pm
First, set the default value of the button as enabled = false.
There are 2 ways to do this, either as code in the form load event or as a proplerty of the button.
The code is simply
btnX.Enabled = False
Then on the text change event of each textbox, change the value to true if your conditions are met.
Something like this
Private Sub richfield1_textChanged(ByVal sender As System.Object, _
ByVal e As System.EventArgs) _
Handles richfield1_textChanged, _
richfield2_textChanged, _
richfield3_textChanged
If (richfield1_textChanged = "" Or richfield2_textChanged = "") _
btnX.Enabled = True
End If
Good Luck!