How can I correct.
I have textbox that is empty and where the cursor is flashing and I wish to move to other textboxes.
What happens is that the error message is displayed first and when I press OK, only then can I move to the other textboxes. How do I stop this happening. Am I missing some code. Hope somebody can help me.
DesterateDan
Private Sub salesInput_Validating(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles salesInput.Validating
'' Determines if the input is a number, or if it is a correct value between 1 and 50,000
If Not IsNumeric(salesInput.Text) Or Val(salesInput.Text) < 0 Or Val(salesInput.Text) > 50000 Then
MessageBox.Show("Only use numbers up to 50,000.00", "Input Error")
End If
End Sub
'' There is a problem MessageBox shows before leaving TextBox