Update textbox in KeyDown event.

S

Steven

How can I update the value of a textbox with each keystroke while I am typing
in the textbox. I am thinking I would do it in the KeyDown event because I
dont want to exit the textbox to update it but instead update it continuously
with each keystroke.

Thank you for your help.


Steven
 
A

Allen Browne

KeyDown is too early. The new character has not yet become part of the Text
of the control.

Use the Change event, and examine its Text property. (The Value is not
updated yet.)
 
Top