Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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

  • Leaders
Posted
Are you tabbing between textboxes? I don't understand exactly how that can happen... unless some intermediate process interrupts the UI thread maybe.
[sIGPIC]e[/sIGPIC]
Posted

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...