Hello Andrus
The easy way I think would be to put in the valid event and not the lost focus event
KEYBOARD '{CTRL+HOME}'
let me know if that doesn't work
>I have a self-expandig editbox control in form.
>In gotfocus event , I increase its height to two lines.
>
>User types two or more lines of text to a editbox control
>and presses Tab key to move to the next control (grid in my case) in form.
>
>In lostfocus event, I decrease editbox height back to one line.
>
>Unfortunately, editbox control displays the last line after losing focus.
>
>I need that editbox control displays first line.
>Is it possible to put some code to lostfocus event to rewind editbox
>control back to beginning or is there some other solution
>to rewind it to first line after losing focus ?