Application.AutoYield ???
also check for READ EVENTS and CLEAR EVENTS.
>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.