Hi,
You don't need Read Events if form is modal. See corrections in bold below.
>Hi,
>
>I appreciate all the help. I still can't get the form to show when running from an exe.
>
>Here's the code I have used -
>Main.prg
<b>_Screen.Visible = .T. </b>
> Do form form1
> <b>***Read Events</b>
>
>Form methods
>Form Window type - "1-Modal"
>
>Exit Button Click Method
> IF MESSAGEBOX('Are you sure you want to exit?',4+32,ThisForm.Caption)=6
> THISFORM.Release
> ENDIF
>
>Destory method of the form
> <b>***Clear Events</b>
>Problems
>1)The form does not show up when running the exe.
>2)The control does not return to the main prg when running through foxpro.
>
>Thanks in advance
>Neetu Kumar
--sb--