>why form jump from load into unload?
>i don't put return .f. in load. i try debug with set step on and i cannot see anything. runs load and then jump unload???
If I remember correctly the forms initial events are Load, Init, Show and then Activate. Is it possible that one of these methods is closing your form? Also returning .f. from Init will cause the form to close.
When I run into something like this I try to isolate the problem. I will either build a test form that has the minimal functionality and see if I can recreate the issue or make a copy of the form and start removing pieces of the form until I can identify which piece is causing the errant behavior.