如何多重验证文本框?我只希望用户输入整数,但整数不应该是 0 或更少,我该怎么做?这就是我所做的:
If Val(txtCopies.Text) <= 0 Then
ErrorProvider1.SetError(txtCopies, "Number should be bigger than 0 ")
If IsNumeric(txtCopies.Text) = False Then
ErrorProvider1.SetError(txtCopies, "Number only")
Else
blabla
End If
End If