Dimitris,
If your cancel button's Cancel property is .T. you can check the value of LASTKEY() in your valid. If it's 27 you know that the user either pressed escape or clicked the cancel button.
>There is sometimes a situation where you want to bypass the validation check when you click a specific (Cancel - to exit the form) button but it seems there is no way to do this. It would be nice for instance if in the valid event of a textbox control i could specify that when clicking the thisform.cmdCancel to bypass the valid event of the textbox control. You cannot do this or am i missing something