>DECLARE integer Sleep in Win32API integer >loWord.Visible=.T. >loWord.ActiveDocument.PrintPreview >#DEFINE nLimitation 300 >i = 1 >do while loWord.PrintPreview AND i<=nLimitation && loop until we're in the print > &&preview mode or time limitation reached > sleep(1000) >enddo >loWord.ActiveDocument.CLose..... >..... >That works like a charm. However, even if the VFP application is freeze, we can still click on it and we see that the sceen if not refreshed. How can we disable VFP during that time? Basically, presently, the user can click on the taskbar to bring it frontmost. I would like to lock that ability during that time.