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. Progress Bar while copying, deleting files

Progress Bar while copying, deleting files

Scheduled Pinned Locked Moved C#
questionhelp
5 Posts 3 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.
  • R Offline
    R Offline
    ramzg
    wrote on last edited by
    #1

    Hi, I would like to know if I can include a progress bar when I'm trying to copy files from one location to another with : 1. The file count unknown to me. 2. The size of each file is unknown to me. For the above conditions, I'm able to get the normal progress bar which shows progress between the starting and final positions repeatedly. The question is whether I can use a progress bar that shows the overall progress, just like the windows file copy progress bar... Can anyone help me on this? Thanks in advance, ramzg

    L A 2 Replies Last reply
    0
    • R ramzg

      Hi, I would like to know if I can include a progress bar when I'm trying to copy files from one location to another with : 1. The file count unknown to me. 2. The size of each file is unknown to me. For the above conditions, I'm able to get the normal progress bar which shows progress between the starting and final positions repeatedly. The question is whether I can use a progress bar that shows the overall progress, just like the windows file copy progress bar... Can anyone help me on this? Thanks in advance, ramzg

      L Offline
      L Offline
      Luc Pattyn
      wrote on last edited by
      #2

      if you don't have the numeric information, you can't show progress information, all you can do is indicate it is still busy. so figure out what you mean by progress, and once you know how to do it by hand, you can create some code that does the same. :)

      Luc Pattyn [Forum Guidelines] [My Articles]


      Avoiding unwanted divs (as in "articles needing approval") with the help of this FireFox add-in


      R 1 Reply Last reply
      0
      • L Luc Pattyn

        if you don't have the numeric information, you can't show progress information, all you can do is indicate it is still busy. so figure out what you mean by progress, and once you know how to do it by hand, you can create some code that does the same. :)

        Luc Pattyn [Forum Guidelines] [My Articles]


        Avoiding unwanted divs (as in "articles needing approval") with the help of this FireFox add-in


        R Offline
        R Offline
        ramzg
        wrote on last edited by
        #3

        Hi Luc Pattyn, Thanks for the reply.. Ya, it is not possible to show progress information here... But I forgot to include this in my question... Would I be able to get the animation that windows uses (with a transparent background, so that I can place it on my form) to indicate that the files are being copied? Or do I have to create my own animation? Thanks, ramzg

        L 1 Reply Last reply
        0
        • R ramzg

          Hi, I would like to know if I can include a progress bar when I'm trying to copy files from one location to another with : 1. The file count unknown to me. 2. The size of each file is unknown to me. For the above conditions, I'm able to get the normal progress bar which shows progress between the starting and final positions repeatedly. The question is whether I can use a progress bar that shows the overall progress, just like the windows file copy progress bar... Can anyone help me on this? Thanks in advance, ramzg

          A Offline
          A Offline
          Abhijit Jana
          wrote on last edited by
          #4

          ramzg wrote:

          I would like to know if I can include a progress bar when I'm trying to copy files from one location to another with : 1. The file count unknown to me. 2. The size of each file is unknown to me. For the above conditions,

          If you know the source of file the what is problem with counting file or File Size.

          ramzg wrote:

          The question is whether I can use a progress bar that shows the overall progress, just like the windows file copy progress bar...

          Use BackgroundWorker to show step by step process. Ref

          cheers, Abhijit CodeProject MVP

          1 Reply Last reply
          0
          • R ramzg

            Hi Luc Pattyn, Thanks for the reply.. Ya, it is not possible to show progress information here... But I forgot to include this in my question... Would I be able to get the animation that windows uses (with a transparent background, so that I can place it on my form) to indicate that the files are being copied? Or do I have to create my own animation? Thanks, ramzg

            L Offline
            L Offline
            Luc Pattyn
            wrote on last edited by
            #5

            this[^] and this (Using Windows Explorer Progress Dialog In Your Application)[^] could be relevant, but the Windows dialog is a dialog form and not transparant. :)

            Luc Pattyn [Forum Guidelines] [My Articles]


            Avoiding unwanted divs (as in "articles needing approval") with the help of this FireFox add-in


            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