rutlean

Does anyone know of a way to tell when a user is finished entering text into a text box. Are there any kind of windows events that represent that Other than a button click or another mouse click altogether, I can't think of a way.

Any suggestions

Thanks


Re: Windows Forms General Text Box Entry Finished

Katatau

I think you will never know this, because only the user knows if he finishes typing what he wants....

unless you have pre-defined options, or use a limit of characters, I think it's impossible to do it

=/






Re: Windows Forms General Text Box Entry Finished

Solitaire

I use the KeyPress event. If the user presses the Enter key, focus goes to the next control. Example:

If e.KeyChar = Chr(13) then btnNext.Focus()






Re: Windows Forms General Text Box Entry Finished

Zhi-Xin Ye - MSFT

You can try either LostFocus event or Leave event,




Re: Windows Forms General Text Box Entry Finished

Ðãv? S. Â???????

Although this isn't full proof. The user can be done typing but still leave focus to the textbox. As said in a previous post, the only true way is if you have a character limit (which is still not full proof). Maybe make a button that the user must click when they are done typing, just a suggestion.