Do you have thisform.Visible=.T. in the init of the form?
Where do you have Clear Events? (It should be in the forms' destroy
>Hi All
>
>I create a Form for data entry purpose and generate EXE using that form. Generated EXE runs within VFP very well and take the inputs. But when I execute that EXE from outside VFP (Just double click on generated), EXE executed and immediately unloaded itself.
>
>I also include the following MAIN.PRG to generate EXE ;
>
>**** main.prg
>close all
>clear all
>
>do form XYZ
>read events
>
>*****
>
>
>Now I want to learn and know that :-
>
>1. why EXE unload immediately after run & can't stay for inputs?
>2. how can I stop this type of problem?
>
>Please help me.
>
>Arun, India