Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Backgroundworker in .NET1.1 [modified]

Backgroundworker in .NET1.1 [modified]

Scheduled Pinned Locked Moved C#
csharpquestionannouncement
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    SPanicker
    wrote on last edited by
    #1

    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

    N 1 Reply Last reply
    0
    • S SPanicker

      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

      N Offline
      N Offline
      N a v a n e e t h
      wrote on last edited by
      #2

      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

      S 1 Reply Last reply
      0
      • N N a v a n e e t h

        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

        S Offline
        S Offline
        SPanicker
        wrote on last edited by
        #3

        Thanks navaneeth.

        Regards, Lenus.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups