>Did you try to kep in wrong password, username or server name?
>If one of them is wrong, VFP will raise error however ERROR() event
>will not fired. Therefore I failed to handle it.
I didn't, but I just tried again, adding
ON ERROR WAIT WINDOW MESSAGE()
to the program: it correctly showed the error in the WAIT WINDOW, instead of popping up the error dialog. I haven't tested this with the OCX, though.