Update textbox in KeyDown event.

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
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.)
 
Back
Top