Loading status bar for data in other form !!
-
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?
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 ...
-
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?
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 theReportsProgress
property to true and call theReportProgress
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 aBackgroundWorker
and aProgressBar
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)