CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6

Thread: loading screen

  1. #1
    Join Date
    Aug 2005
    Posts
    134

    loading screen

    My app is getting pretty large and i was wondering how to implement a splash screen that shows how much is loaded of the entire program.
    The splash screen part isn't the problem, but how can i find out how % of the app is loaded?

  2. #2
    Join Date
    Dec 2005
    Location
    Waterloo ON
    Posts
    545

    Re: loading screen

    It's hard to measure percentage of loading program, you can check the starting screen of Windows. Microsoft can't even get the percentage of loading system.
    The difficulty is that you have no idea how difficult it is.

    .Net 3.5/VS 2008

  3. #3
    Join Date
    Jun 2004
    Location
    Kashmir, India
    Posts
    6,808

    Re: loading screen

    Rather than showing a percentage, you just show something [like we have in Ajax (Update Progress)], that will let the user know that it is currently doing something.

  4. #4
    Join Date
    Mar 2007
    Posts
    59

    Re: loading screen

    It depends on how you load your data. If you have no control, doing what Shuja Ali is a good option. On the other hand, if you have more control (or can refactor it), you could just add a variable and increment it in your "loading code" and use it on your splash screen.

  5. #5
    Join Date
    Aug 2005
    Posts
    134

    Re: loading screen

    Showing something like "Loading, please wait" is good enough for me. But how do i know if the program is fully loaded then? Is there anyway to check that?

  6. #6
    Join Date
    Jun 2004
    Location
    Kashmir, India
    Posts
    6,808

    Re: loading screen

    Quote Originally Posted by Trainwreck View Post
    Showing something like "Loading, please wait" is good enough for me. But how do i know if the program is fully loaded then? Is there anyway to check that?
    That actually depends on what you are loading. You could create an event that will notify the splash screen that loading has been completed.

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

Featured