怎样判断输入是数字,而不是字符?
想判断输入的数是否是一个数字,而不是字符,该如何用if语句 Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.TextChanged
If IsNumeric(Me.TextBox1.Text) Then
Label1.Text = "数字"
Else
Label1.Text = "字符"
End If
End Sub