Is your form Modal? If so, you should make it non-modal. TO make sure that execution of the program stops when the form is visible, do this:
DO MyForm
READ EVENTS
In the unload method of your form, put a CLEAR EVENTS. This way execution will stop after your form is displayed and wait at the READ EVENTS. When the form is unloaded, execution will continue with the line after READ EVENTS.
>I wrote a small application that has a single form, report.
>When I run that application, All system menus are deactivated.
>including print, page setup etc.
>
>How to activate them?
>
>--satya