>Hi Paul,
>
>Here's what I've done in a similar situation:
>
>1. set the form's keypreview property to .t.
>2. in form's keypress method check that keycode= 4 and that the thisform.activecontrol.name=
.
>3. (here I'm less sure, but you might try it) thisform.activecontrole.value= thisform.activecontrol.value+' '+dtoc(date()).
>
>HTH,
>
>Marc
Eehr, and in the form's keypress method (point 3) you have to issue a NODEFAULT statement because otherwise you will get a graphic character in your text, ... and you can also set the selStart property to the length of the value, so that the cursor is placed a the end of the text. Note that what happens if your user presses ctrl+d in the middle of the text is not supported here. That really depends on what _you_ want.
>
>
>>Hello,
>>
>>I have an EditBox to key in notes for a customer. I would like to automatically insert todays date when the customer hits CTRL+D or whatever. I have played around with a few things to no avail like on key label in the keypress event of the editbox.
>>
>>Any ideas?
>>
>>Paul
If things have the tendency to go your way, do not worry. It won't last. Jules Renard.