title: vb.net - enable/disable a button depending on user input
body: <p>As I'm putting the finishing touches on my program I'm having some troubles.
  Theres several user inputs and a submit button, once the inputs has been filled I wish to enable the submit button, else the button should be disabled. This is what I have:</p>
  
  <pre><code> Private Sub ButtonControl(sender As System.Object, e As System.EventArgs) Handles Input1.Validated
      If Input1.Text = "" Then
          ButtonSubmit.Enabled = False
      ElseIf Input1.Text &lt;&gt; "" Then
          ButtonSubmit.Enabled = True
      End If
  End Sub
  </code></pre>
  
  <p>The thing is it disables nomatter what and then it doesnt enable when my input is filed</p>