title: squestion sanswer vb.net aaa
body: <pre><code>MysqlConn.Open()
  command.Connection = MysqlConn
  command.CommandType = CommandType.Text
  command.CommandText = "select securityq from admin.customer where securityq = @secuq"
  With command.Parameters
     .AddWithValue("@secuq", Label2.Text)
  End With
  READER = command.ExecuteReader
  If READER.HasRows Then
    command.CommandText = "select securitya from admin.customer where securitya = @secuqa"
    With command.Parameters
      .AddWithValue("@secuqa", TextBox2.Text)
    End With
  End If
  
  If Label2.Text = TextBox2.Text Or TextBox2.Text = Label2.Text Then
    Panel1.Visible = False
    Panel2.Visible = False
    Panel3.Visible = True
    READER.Close()
  Else
    MessageBox.Show(" Incorrect Answer! Please try again. " &amp; count &amp; " tries left")
    TextBox2.Clear()
    Count -= 1
  End If
  </code></pre>
  
  <p>Count is working but security question and security answer matching is not working</p>
  
  <pre><code>If Count = 0 Then
    MessageBox.Show(" Please contact Admin", " Error! ", MessageBoxButtons.OK, MessageBoxIcon.Error)
    Login.Show()
    Me.Hide()
  End If
  </code></pre>