Hi, im trying to disable a button until anything has been entered into two text boxes simultaneously.
So far i have tried:
If String.IsNullOrEmpty(TextBox1.Text & TextBox2.Text) Then
Button1.Enabled = False
Else
Button1.Enabled = True
End If
However it doesnt work simultaneously, the button will become enabled if i enter anything into either textbox, i cant have any of them left blank.