+ Reply to Thread
Results 1 to 8 of 8

Thread: Fake Progress Bar?

  1. #1
    Newbie hibby50 is an unknown quantity at this point hibby50's Avatar
    Join Date
    Mar 2009
    Posts
    19

    Fake Progress Bar?

    Hi guys, I am trying to create a fake progress bar. I have an original form and then a button to bring up a new form on top. Now for the form that pops up second, i want it to have a fake progress bar. In other words like a bar that just shows the loping line, or a loading one that stalls out about halfway. However I don't want anything actually happening. Any suggestions?

  2. #2
    Administrator Jordan is a name known to all Jordan is a name known to all Jordan is a name known to all Jordan is a name known to all Jordan is a name known to all Jordan is a name known to all Jordan's Avatar
    Join Date
    Nov 2005
    Location
    Hendersonville, NC
    Posts
    24,556
    Blog Entries
    97

    Re: Fake Progress Bar?

    You could just use a loop (0 to 100 perhaps) and use the system.wait() function to wait 100 ms (or whatever) during each loop. Increment the progress bar by 1 each time and then when finished you can load your 2nd form.

  3. #3
    Newbie hibby50 is an unknown quantity at this point hibby50's Avatar
    Join Date
    Mar 2009
    Posts
    19

    Re: Fake Progress Bar?

    Awesome... only thing now is where does this code go?

  4. #4
    Newbie hibby50 is an unknown quantity at this point hibby50's Avatar
    Join Date
    Mar 2009
    Posts
    19

    Re: Fake Progress Bar?

    nvm i got it... thanks bro

  5. #5
    Administrator Jordan is a name known to all Jordan is a name known to all Jordan is a name known to all Jordan is a name known to all Jordan is a name known to all Jordan is a name known to all Jordan's Avatar
    Join Date
    Nov 2005
    Location
    Hendersonville, NC
    Posts
    24,556
    Blog Entries
    97

    Re: Fake Progress Bar?

    No problem.

  6. #6
    Guru ArekBulski is just really nice ArekBulski is just really nice ArekBulski is just really nice ArekBulski is just really nice ArekBulski is just really nice ArekBulski's Avatar
    Join Date
    Mar 2009
    Posts
    1,374

    Re: Fake Progress Bar?

    For C# it is Thread.Sleep() method actually. Just a note for posterity.

  7. #7
    Administrator Jordan is a name known to all Jordan is a name known to all Jordan is a name known to all Jordan is a name known to all Jordan is a name known to all Jordan is a name known to all Jordan's Avatar
    Join Date
    Nov 2005
    Location
    Hendersonville, NC
    Posts
    24,556
    Blog Entries
    97

    Re: Fake Progress Bar?

    Good catch Arek. Not sure where I got system.sleep. Perhaps an old MFC function or a java method.

  8. #8
    Newbie hibby50 is an unknown quantity at this point hibby50's Avatar
    Join Date
    Mar 2009
    Posts
    19

    Re: Fake Progress Bar?

    yea i figured that one out, thanks you two

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. Progress bar help!! Right away!!
    By Leg3nd in forum C# Programming
    Replies: 1
    Last Post: 03-15-2009, 02:07 PM
  2. Visual Basic 6 progress bar for webbrowser
    By ViRuSS in forum Visual Basic Programming
    Replies: 5
    Last Post: 12-03-2008, 03:10 PM
  3. Replies: 0
    Last Post: 09-24-2008, 08:18 AM
  4. Progress bar help
    By mholt in forum C# Programming
    Replies: 2
    Last Post: 08-21-2008, 01:13 PM

Bookmarks

Bookmarks

     
        Algorithms and Data Structures

        Java tutorials

        Algorithms Forum

Posting Permissions

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