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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. Firefox-like Download listbox

Firefox-like Download listbox

Scheduled Pinned Locked Moved C#
helpquestion
2 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
    see_seA
    wrote on last edited by
    #1

    Has any one created a Listbox type control similar to the one that is found in the Firefox Download screen? Or something similar? I'd really appreciate the help!

    L 1 Reply Last reply
    0
    • S see_seA

      Has any one created a Listbox type control similar to the one that is found in the Firefox Download screen? Or something similar? I'd really appreciate the help!

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Start out with a UserControl, and dub it "WorkList". Set "AutoScroll" to true. This will cause scrollbars to appear in the master-control when there's items that don't fit in the client-area. Create a new UserControl called "WorkItem" that holds: - a label - a progressBar A minimum & maximum-height of, e.g. 200. I assume that you'll be using backgroundWorkers to do the work, and that you're going to keep the progress of each thread in the "downloadlist". Whenever you create a new backgroundworker, you also create a new "WorkItem" usercontrol, and pass it as a parameter to the new thread. Set the Dock property to "Top", and it will snap in place in the list. In the .DoWork of the backgroundworker, call the backgroundWorker1.ReportProgress( ... ) method. This will raise the backgroundWorker1_ProgressChanged event, in which you update the progressBar of the associated "WorkItem"-usercontrol. If the Control is @100%, dispose :)

      I are Draenei, apparently, level 72 :doh:

      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