用户在txtAmountTextBox 中提供值,我稍后以这种方式处理:
c = txtAmount.Text 'GET AN ERROR HERE BECAUSE I NEED C TO BE AN  INT
我希望用户能够更正输入的值,所以我可以得到c一个整数:
If Not (IsNumeric(txtAmount.Text)) Then
  lblMsg.Caption = " Please enter you answer numericly "
  txtAmount.Text = ""
  txtAmount.SetFocus 'HERE IS WHAT I WANT TO FIX
End If
If (txtAmount.Text = "") Then
  lblMsg.Caption = " Please enter amount to convert"
  txtAmount.SetFocus
End If
在处理输入的值之前,我应该在哪里放置验证码以便调用它?