Pedro,
Try putting the following in the Base Class Valid method
if lastkey() = 27
return .T.
endif
return This.Validation()
Don't forget to create a custom Validation method (or something similar) into which the individual valid code can be placed.
>Hi
>
>In my forms , when user is in TexBox , and now click in command button to cancel all changes , the VFP make the valid of textbox .
>
>I want Vfp don´t make Valid TextBox , when user click in command button .
>
>How can i do this ?
>
>Thanks
Caroline