If IsNumber(txtNumInput.Text) Then
If txtNumInput.Text > "9" Or txtNumInput.Text = "0" 'the first values are both casted to Double and then compared, the last check is using ".equals" in java-sources
MsgboxAsync("Sorry but your number must be between 1 and 9. Please try again","Result")
txtNumInput.Text = ""
txtNumInput.RequestFocus
Return
End If
End If