Re: adapter.fill and progress bar

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



On Mon, 9 Jan 2006 17:50:50 -0800, "Rain County"
<raincounty-at-hotmail> wrote:

>When I initialize my app, I put up a "splash" screen with a progress bar
>while the app fills its datasets. The fill takes longer sometimes than it
>does other times. Is there anyway to measure/determine the progress of the
>fill operation? I wish to know this so that I can adjust the progress bar
>to be more realistic.
>
>(Currently, the time to fill the datasets can range from 5 seconds to 20
>seconds, even though the dataset size dows not vary very much.)
>
>TIA
>

If you're using .NET 2.0 you can use the Progress bar in Marquee mode.
When you use that mode the bars squares in the bar oscillate from one
side to the other while the work is being done.


Otis Mukinfus
http://www.otismukinfus.com
http://www.tomchilders.com
.



Relevant Pages

  • Re: Delegates and threads
    ... reaching the main window procedure in order to process events, ... > Here's the simplest approach to updating a progress bar aynchronously in a WinForms app. ... > private delegate void UpdateProgressInvoker; ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Progress Bar stops working?
    ... Most likely cause is because the main app thread is busy with the operation ... and it does not get a chance to process messages to repaint itself and do ... If I click on another window at this ... > progress bar and textbox updating to resume. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: entering a function after dialog is displayed
    ... There are problems with "lengthy initialization" that cause problems. ... will repaint the app, the dialog, etc. is dead. ... progress bar, an UpdateWindow is required, so the only part of the app that comes up is ... again that programming GUI apps in the raw API is a Fundamentally Losing Idea. ...
    (microsoft.public.vc.mfc)
  • Re: Invoking a form that was created on a separate thread
    ... An app should not have more than 1 ... progress bar or animated clown juggling could ... > 15 of the engineer surveys that need to be done and new ones add all the ... > a survey and deploy it to a web server and then when the launcher app is ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Best way to deal with long loops?
    ... stress-testing my app as I write it, ... a progress bar to be painted. ... my own SaveToFile routine is about 3 times as ... bit more when I allow system messages to be processed. ...
    (alt.comp.lang.borland-delphi)