>How can I control when the user clicks on the X to close a Form?
>Is there a way to not let the form close when the X is clicked?
>I tried the Destroy method, but it only happens when the form is already closing.
>I need to controle whether I can let the user close or not the current form or be certain that the user realy wants to close it asking him.
Valter,
Have a look at the ReleaseType in the help
if( this.ReleaseType = 1 )
nodefault
return .f.
endif
Gregory