I can't help with the "x" icon, but I have a FAQ here on the UniversalThread about trapping Cancel or Close button clicks and avoiding normal Valid behavior.
>I use valid property for validation entries, but I don't want VFP run the "valid property" when I close the program by clicking 'x' sign at the top right side. how to do that ?
>
>regards
>Winan
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05