I have solved this by moving the routine into the TextChanged event. What was happening was I was typing and overlapping the keys. for example, the last 2 numbers being typed were 6 and then 1. I was hitting the 6 key and before the key was released, I was typing the 1 key. Therefore, when...
Here is the complete listing for this function, thanks for taking a look at it:
Private Function ValidInputText(ByVal strIn As String) As Boolean
Dim strTemp As String
strTemp = Trim(strIn)
If strTemp.Length() = 7 And (strTemp.LastIndexOf("-") = 1) Then
'enable the Next Button...
I have a textbox that I have written a KeyUp event for, and it looks at the contents of the text box for validation. The problem is that when I type the number too fast, the previous event evaluates to true and fires heavy database routines multiple times. I can't quite figure this out, any...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.