>Hi agian to all UTites...
>
>I am making Keypreview to .T., in my Form and capturing the keys pressed by users in any controls.
>
>But the problem is, when a key pressed, say CTRL+S for saving the record. The Form's Keypreview event is run and the VALID event of the control is Ignored.
>
>Can somebody give me solution as to how I can make my Valid Event to trigger before the Keypress Event of the Form.
>
>TIA
You cannot. But you might develop a workaround :
if nKeyCode = something
if ...activecontrol.valid
else
nodefault
endif
Better move your validation code to lostfocus.
Cetin