469,619 Members | 1,855 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,619 developers. It's quick & easy.

Undo in TextBox

Hi,

If a user enters a wrong value (which depends on some properties of it's
container control) in one of my dynamicly made TextBoxes I want to undo the
change he made to the Text property of the TextBox.
I think some possible ways are:
- Use a Validation control. This will be difficult because I generate
multiple TextBoxes dynamicly and they have different validationrules.
- Do something in the TextChanged handler. This is preferred and simple
but maybe this is impossible.
- Add a property to the TextBox control which remembers the previously
entered value.
- .....

My first question is: how can I do the undo the best way?
My second question is: is there a possibility to retrieve the previous
entered value in the TextChanged handler?

Thanks, Marco
Nov 17 '05 #1
0 1581

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by s-galit | last post: by
10 posts views Thread by John Richardson | last post: by
5 posts views Thread by Steve | last post: by
reply views Thread by devrayhaan | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.