Results 1 to 10 of 10

Thread: [RESOLVED]Splash with progressbar

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    May 2009
    Posts
    203

    [RESOLVED]Splash with progressbar

    Hey,
    Is it possible to add a progressbar to a splash screen, that automatically updates until the application is loaded?
    Last edited by vixez; Feb 10th, 2010 at 01:32 PM.

  2. #2
    Wait... what? weirddemon's Avatar
    Join Date
    Jan 2009
    Location
    USA
    Posts
    3,826

    Re: Splash with progressbar

    When programming, there aren't really "automatic" features. Things don't just happen like end Users see. We're the ones who make those "automatic features.

    Your program is obviously loading objects our performing tasks when it loads. So, you can add a progress bar to the Splash Screen form and the do something like the following in your main form:

    vb Code:
    1. 'Commit task in Main Form
    2. SplashScreen1.ProgressBar1.Value += 1
    3. 'Commit task in Main Form
    4. SplashScreen1.ProgressBar1.Value += 1
    5. 'etc

    You can set the Maximum property of the progress bar to the total of your tasks, or you can increase it's size by 1 right before you increase it's value by 1.
    Last edited by weirddemon; Feb 9th, 2010 at 02:21 PM.
    CodeBank contributions: Process Manager, Temp File Cleaner

    Quote Originally Posted by SJWhiteley
    "game trainer" is the same as calling the act of robbing a bank "wealth redistribution"....

  3. #3
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373

    Re: Splash with progressbar

    On your splash screen just set the progress bar style to marquee. That way you don't have to bother with increasing the value or anything like that (especially when the value you would be increasing by isn't any sort of real indication of your apps loading progress)

  4. #4
    Wait... what? weirddemon's Avatar
    Join Date
    Jan 2009
    Location
    USA
    Posts
    3,826

    Re: Splash with progressbar

    Quote Originally Posted by kleinma View Post
    (especially when the value you would be increasing by isn't any sort of real indication of your apps loading progress)
    Why isn't it? Let's say the application loads after 10 tasks complete. After each task you increment it +1. So, when it hits 5, you know the application is halfway to loading and so on.

    I think it's a better indication than a marquee bar, since the user will never have any idea on how much longer the app will take to load.
    CodeBank contributions: Process Manager, Temp File Cleaner

    Quote Originally Posted by SJWhiteley
    "game trainer" is the same as calling the act of robbing a bank "wealth redistribution"....

  5. #5
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373

    Re: Splash with progressbar

    Well I don't know about you, but I hate progress bars. They are never accurate. What if steps 1 - 5 take 5 seconds each to complete, but steps 6-10 take 1 minute each to complete. You would get to 50% in 25 seconds, and think you have another 25 seconds before the rest is done, when in reality it is actually 5 more minutes.

    The only time I find a progress bar to be of value is when each step takes the same amount of time to complete, or if somehow the amount of time can be closely estimated before hand in a way that you could give accurate measurements of progress.

    Completing 5 of 10 steps might be considered 50% done, but it does not really measure actual progress in the sense that an end user would expect to see since they will base how long the second 50% should take on how long the first one took.

    The other thing that kills me with progress bars is when they get to 100% yet the program still goes on crunching away for another 10 minutes with a full progress bar.

  6. #6
    Wait... what? weirddemon's Avatar
    Join Date
    Jan 2009
    Location
    USA
    Posts
    3,826

    Re: Splash with progressbar

    Well, I like to give the User an idea of how far the app has been loaded. While the progressbar, in this setup, won't accurately reflect how much time there is until it loads, it at least give them an idea.

    A marquee progressbar leaves them in dark completely.
    CodeBank contributions: Process Manager, Temp File Cleaner

    Quote Originally Posted by SJWhiteley
    "game trainer" is the same as calling the act of robbing a bank "wealth redistribution"....

  7. #7
    PowerPoster cicatrix's Avatar
    Join Date
    Dec 2009
    Location
    Moscow, Russia
    Posts
    3,654

    Re: Splash with progressbar

    It's a sign of a thorough approach when a coder actually measures the times each step takes several times, averages it out and provide a user with more or less accurate info about the progress.
    Well, we can always show him a spinning wheel or smth if we're not sure of how long does it take.
    An ideal solution for a long waiting process is to entertain a user with some little game like tetris or arkanoid

  8. #8
    PowerPoster stanav's Avatar
    Join Date
    Jul 2006
    Location
    Providence, RI - USA
    Posts
    9,290

    Re: Splash with progressbar

    Quote Originally Posted by cicatrix View Post
    An ideal solution for a long waiting process is to entertain a user with some little game like tetris or arkanoid
    And a cup of Espresso too
    Let us have faith that right makes might, and in that faith, let us, to the end, dare to do our duty as we understand it.
    - Abraham Lincoln -

  9. #9

  10. #10

    Thread Starter
    Addicted Member
    Join Date
    May 2009
    Posts
    203

    Re: Splash with progressbar

    Haha, it doesn't take that long to load that the user needs to play a game :P

    I've got a problem with the splash screen tho, but I've psoted it in an other thread as this one's resolevd.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width