|
-
Jun 12th, 2007, 01:24 AM
#3
Re: [2005] How to tell when a file copy has finished
Don't close the form until the task has finished. In the Click event handler of the Cancel button just disable the button so it can't be pressed again and then cancel the BackgroundWorker. You then close the form in the BackgroundWorker's RunWorkerCompleted event handler, so it happens when the operation completes, cancelled or not.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|