Clear Key Buffer?

ehelin

Freshman
Joined
Oct 11, 2005
Messages
48
Hi:

I am transitioning between two text boxes...and depending on my users (some are real speed typers <grin!>), sometimes text from the previous box makes it into the next text box.

My question is that if I try the gain focus event of the second text box. is there a way to clear the key buffer (assuming this exists)?

Any thoughts would be appreciated.

Thanks!

Eric
 
Are you tabbing between textboxes? I don't understand exactly how that can happen... unless some intermediate process interrupts the UI thread maybe.
 
hey

I have a bunch of "special" functions associated with each text box that fire under different situations...however, I did find a fix. I have a hidden text box that is an intermediate step between the two. When my user tabs, they go there, I count for a second, clear the hidden text box (cuts off any stray characters from the first), and then set the focus on the second text box. Seems to be working fine.

Thanks for the reply!

Eric
 
Back
Top