Backgroundworker in .NET1.1 [modified]
-
Hi, Am trying to implement a progress bar in an application to copy files/folders. This progress bar is meant to sho the staus of copy. Can anyone clarify: 1. What's the appropriate method for this to implement an actual status update using progress bar? 2. Whenever I put those two threads running (Main thread and progress bar) it seems the main thread is hanged until files are copied and the progress bar is updated once the copy process is over. I came to know that, this can be sorted out in .NET2.0 using BackgroundWorker class but what can I do for this in .NET 1.1?:confused:
Regards, Panicker.
modified on Wednesday, March 5, 2008 5:13 AM
-
Hi, Am trying to implement a progress bar in an application to copy files/folders. This progress bar is meant to sho the staus of copy. Can anyone clarify: 1. What's the appropriate method for this to implement an actual status update using progress bar? 2. Whenever I put those two threads running (Main thread and progress bar) it seems the main thread is hanged until files are copied and the progress bar is updated once the copy process is over. I came to know that, this can be sorted out in .NET2.0 using BackgroundWorker class but what can I do for this in .NET 1.1?:confused:
Regards, Panicker.
modified on Wednesday, March 5, 2008 5:13 AM
SPanicker* wrote:
1. What's the appropriate method for this to implement an actual status update using progress bar?
Run the file copying in a separate thread. This will make your GUI responsive. When the file copy progresses, you need to update progress bar value. Check this[^] to learn how you can update your controls from a separate thread.
All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia My Website | Ask smart questions
-
SPanicker* wrote:
1. What's the appropriate method for this to implement an actual status update using progress bar?
Run the file copying in a separate thread. This will make your GUI responsive. When the file copy progresses, you need to update progress bar value. Check this[^] to learn how you can update your controls from a separate thread.
All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia My Website | Ask smart questions