Not even a question and so little information that one have to guess what you want.
And the question look like a "DoMyWork" which not what we do, it is the wrong place.
Quote:
At character keypress
this let me think that you want to do some
formatted input.
There is basically 2 possibilities:
- you do normal input and then you check the input when validated.
- you monitor every event in the textbox, keys presses and cursor moves, and a program of you controls what is done as events are processed.
Unfortunately, this depend on the framework you are using.
I have been doing this for 30 years now, it is a standard feature with xBase family languages (FoxPro, Clipper ...)
I suggest to Google for
formatted input for more informations.