title: How to validate two textboxes at single button click using vb.net?
body: <p>How to validate two textboxes at single button click using vb.net ?</p>
  
  <p>it shows an error :</p>
  
  <pre><code>Protected Sub Button2_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button2.Click
      If TextBox1 = "06:00:01 PM" &amp; TextBox2.Text = "02:00:01 PM" Then
          MsgBox "Submit"
      End If
  End Sub
  </code></pre>
  
  <p>Whatz wrong with my this code ?
  I wanna validate two checkbox using if statement ... on Button click</p>