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. Visual Basic
  4. Backgroundworker Class

Backgroundworker Class

Scheduled Pinned Locked Moved Visual Basic
csshelp
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.
  • T Offline
    T Offline
    tonyalex
    wrote on last edited by
    #1

    I am using Background worker class in my application to retrieve the some files in system but filenames are not populated in grid....... Please Help tony

    M 1 Reply Last reply
    0
    • T tonyalex

      I am using Background worker class in my application to retrieve the some files in system but filenames are not populated in grid....... Please Help tony

      M Offline
      M Offline
      mr_lasseter
      wrote on last edited by
      #2

      The background worker and the UI run on separate threads. In order to send results to the UI from the backgroundworker you can use the ReportProgress method of the background worker. In the UI you will need to handle this event to add new items to the grid. Or you can return the results in the RunWorkerCompleted method than have the UI update the grid.

      Mike Lasseter

      T 1 Reply Last reply
      0
      • M mr_lasseter

        The background worker and the UI run on separate threads. In order to send results to the UI from the backgroundworker you can use the ReportProgress method of the background worker. In the UI you will need to handle this event to add new items to the grid. Or you can return the results in the RunWorkerCompleted method than have the UI update the grid.

        Mike Lasseter

        T Offline
        T Offline
        tonyalex
        wrote on last edited by
        #3

        ok thx.........;)

        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