>Is there a way to detect if the print preview window is open. I have an application toolbar with a close button (it has a door). When the print preview is open, sometimes, my users click on the Application Toolbar close button on accident and then after they close the report preview, the application shutsdown (as it is supposed to when they click on the application close button). I'm hoping to put a check in the application close button to make sure the print preview is not open, and if so, ignore the click on this button.
>
>Thanks
>Kirk
Just disable the application close when a prieview is brought up and re-enable it when the preview is finished.
_SCREEN.Closable = .F.
REPORT FORM .... PREVIEW
_SCREEN.Closable = .T.