|
The Click event is called from the message loop. Control will not return to the message loop until BackUp returns, and it's going to take a while. Since the form can not process messages until then, you cannot interact with it and it will shortly be reported as unresponsive as a result of the queue filling up. The best solution would be to move the backup operations to a separate thread. Look in to the BackgroundWorker component. You will of course need to be wary of synchronization issues.
__________________
MD5(sig) = bcef75433db02e9ad9bf81d6f7c5c270
|