>Hi everybody !
>
>I alredy asked this question a couples of day ago in frecnh but I think my question was misunderstood and I think most of peoples here are talking english !!
>
>When I'm in a TEXTBOX control, I would like to know in the valid event the name of the ontrol who wants the focus... My valid event forces the user to enter a valid string and doesn't allow the user to click cancel !!! So in the valid event, I would like to know if the use clicked on the cancel button before testing the value of the string in my TEXTBOX...
>
>I hope my english is good enough for everybody !
>
>Tanks
>
>Benoit Grenier
You can set the "Cancel" property of your Cancel button to .T., then in the valid event of your textbox you can say:
IF LASTKEY() = 27
RETURN
ENDIF
Bill
William A. Caton III
Software Engineer
MAXIMUS
Atlanta, Ga.