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. Loading status bar for data in other form !!

Loading status bar for data in other form !!

Scheduled Pinned Locked Moved C#
questioncss
3 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
    rocky811
    wrote on last edited by
    #1

    I have some forms tht load data in grid in background. As its huge data, until it gets loaded I want progress bar form to show the load status... how can I do that?

    L D 2 Replies Last reply
    0
    • R rocky811

      I have some forms tht load data in grid in background. As its huge data, until it gets loaded I want progress bar form to show the load status... how can I do that?

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

      try backgroundworker , you can found it in you VS toolbox->Component. When you start loading data Call backgroundworker to start Show your loading Form When the background worker Finish ... Close the Loading Form ....

      I know nothing , I know nothing ...

      1 Reply Last reply
      0
      • R rocky811

        I have some forms tht load data in grid in background. As its huge data, until it gets loaded I want progress bar form to show the load status... how can I do that?

        D Offline
        D Offline
        DaveyM69
        wrote on last edited by
        #3

        If you look at the example implementation code in my ProgressWorker article that I linked to earlier, you will see that it does exactly what you want. In the DoWork event handler, do your grid loading. If you can provide values along the way to indicate the progress, set the ReportsProgress property to true and call the ReportProgress method when you want to update the progress, otherwise set it to false and you'll get a Marquee style. If you don't want to use my component, then it's easy to set up a BackgroundWorker and a ProgressBar to do exactly the same thing. I just combined them into one to make life easy!

        Dave
        BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
        Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)
        Why are you using VB6? Do you hate yourself? (Christian Graus)

        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