Hi, I try to use a bitmap skin and I created ( X )

a button call Xbutton to exit the program.
-----------------------
SUB FORM1_XBUTTON_Events( MyID&, CMsg&, CVal&, Cancel&)
SELECT CASE CMsg&
CASE %EZ_Click
(what is the best to exit

)
CASE ELSE
END SELECT
END SUB
-----------------------
do I have to sent message terminate,
or exit,
or use %WM_CLOSE,0,0 EXIT FUNCTION
or use the END statement (NEW!) Purpose
Terminate program immediately.
Syntax END [nErrorLevel&]
I just try to find the best way to exit
