Well, one of the keys you would not see in either the keypress or keydown events is the tab key, which of course will move the focus.
When I click on the cancel button it doesn't even get to the cancel.click event until AFTER it has done the validating.
The users have "required" several features such as navigation with the enter key instead of tab and also that all of the text gets selected upon entering a field, etc.
Close() End Sub Private Sub Text Box1_Validating(By Val sender As Object, By Val e As System.
I don't do anything with the barcode data in the Key Press event.
I guess I could inspect the data in the Key Down event to see if there is a difference.
-- Al Reid "Terry" Hi again Al, On the barcode reader problem.
-- Al Reid "Terry" Hi Al, Nearly 40 years for me since my first college FORTRAN IV class!
Get Text Appeal You’ve got that initial attention, now it’s time for your personality to shine.The form's Key Preview is set to True so that I can handle key events on the form...If I connect a gun type, the program fails and the cursor jumps to a text box that has it's Tab Stop property set to False.You can find the top deals for online personals and review dating sites, matchmaking and dating services.Single men and single women should become active in local social events and try online dating services or speed dating.Why it would stop on a textbox with tabstop property set to False - I have no idea, unless it is a behavior of the container its in.If I hit the escape, the validation event fires and since the m Canceling is not True, the validation error gets displayed before the form closes.My final solution, unless someone has a better suggestion, is to change the Validating event to the Leave event and detecting whether the cancel button had been clicked in the Leave event and exiting if it was.I just don't know what key code combination could direct focus to a text box control that should never receive focus since the Tab Stop property is false and there is no other code that sets focus to the textbox.Get dating advice and anecdotes from our very own Match bloggers on all things relationships!Our writers explore and prepare you for the thoughts and feelings we all experience on our dating journey to keep things fun and interesting.