See faq #7557. My guess is that your form is Top-Level form which cannot be modal.
>Hi
>
>I have created a form which VfpPing.dll to ping the server and
>bbsystray.fll to hide and show the form as well as putting the form
>into systray icon. It works fine from visual foxpro
>
>Now when I build EXE and run it, the form gets displayed once and it
>goes away. The form is a modal form.
>
>I don't know what is wrong ?
>
>Pl. help.
>
>Thanks in Advance
>Ashish Patel
--sb--