Closed Thread
Results 1 to 8 of 8

Thread: Fake Progress Bar?

  1. #1
    hibby50's Avatar
    hibby50 is offline Newbie
    Join Date
    Mar 2009
    Posts
    19
    Rep Power
    0

    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. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    Jordan Guest

    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.

  4. #3
    hibby50's Avatar
    hibby50 is offline Newbie
    Join Date
    Mar 2009
    Posts
    19
    Rep Power
    0

    Re: Fake Progress Bar?

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

  5. #4
    hibby50's Avatar
    hibby50 is offline Newbie
    Join Date
    Mar 2009
    Posts
    19
    Rep Power
    0

    Re: Fake Progress Bar?

    nvm i got it... thanks bro

  6. #5
    Jordan Guest

    Re: Fake Progress Bar?

    No problem.

  7. #6
    Join Date
    Mar 2009
    Posts
    1,375
    Rep Power
    24

    Re: Fake Progress Bar?

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

  8. #7
    Jordan Guest

    Re: Fake Progress Bar?

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

  9. #8
    hibby50's Avatar
    hibby50 is offline Newbie
    Join Date
    Mar 2009
    Posts
    19
    Rep Power
    0

    Re: Fake Progress Bar?

    yea i figured that one out, thanks you two

Closed Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Help with progress bar?
    By eliasmaq in forum Visual Basic Programming
    Replies: 2
    Last Post: 07-10-2010, 04:16 AM
  2. Conficker??? real or fake
    By cabalsun in forum Software Security
    Replies: 19
    Last Post: 08-29-2009, 09:09 PM
  3. Progress bar help
    By mholt in forum C# Programming
    Replies: 2
    Last Post: 08-21-2008, 11:13 AM

Tags for this Thread

Bookmarks

Posting Permissions

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