>Thankyou for your feedback. I have set the window to modal for the form. But my program that calls the form i.e. do form then continues to executes my other do statements. Here is my code in main.prg:
>
>
>DO FORM 'neil'
>MESSAGEBOX("Continued")
>
>
>I basically do not want the messagebox to appear until I close the form.
Neil,
If it's toplevel (ShowWindow=2) you can't make it modal. Modal need to be either in screen or in top level.
PS: If it's something like a login form then you can simulate modality with read events-clear events.
Cetin