See
http://fox.wikis.com/wc.dll?Wiki~FunctionSYS1270~VFP for solution.
>Hi All,
>
>It is regarding Windows events during some calculation process.
>I have a progress bar that also allows the user to press a button during program execution in order to cancel the process if needed.
>
>Usually I use DOEVENT command to process all events but this command slows down
>and pause the process of the program.
>
>Is there any work around it without using the DOEEVENT command?
>
>Thanks,
>
>Doron
--sb--