Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Hide-and-Seek with MessageBox()
Message
 
To
03/11/2001 11:35:23
Charles Richard
Nvo Management Systems
Boisbriand, Quebec, Canada
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00576823
Message ID:
00577448
Views:
22
>Try a THISFORM.REFRESH or a _SCREEN.ACTIVEFORM.REFRESH just before the MESSAGEBOX.
>
>>Hello All -
>>
>>I've got a VFP6 application that makes use of the MESSAGEBOX() function to provide feedback to the user when a given activity is completed. In some cases, the MESSAGEBOX ends up behind the VFP window making the user think that the app has hung. In reality, the MESSAGEBOX is still waiting for a response, so if for example ENTER is pressed, the default button is chosen and control returns to my app. Alt-Tabbing off the app and back causes the MESSAGEBOX window to appear again.
>>
>>The usual place this happens is right after a call has been made to zip/unzip a file with the DynaZip DLLs or encrypt/decrypt a file using calls to the CryptoAPI. It happens regularly on Win2000 and also on NT.
>>
>>Has anyone seen this behavior? Any suggestions for getting it to work normally? I do know about alternates to MESSAGEBOX, and have even written a simple one myself in case I can't get MESSAGEBOX to work, but would prefer to use MESSAGEBOX if possible since it's a known quantity.
>>
>>Thanks,
>>Scott

Hi Charles,

I tried the Refresh ideas with no success. Will was able to provide me a simple solution that works.

Thanks,
Scott
Scott King
The Support Source Corporation
Previous
Reply
Map
View

Click here to load this message in the networking platform