Jump to content

  •  

  • iBotModz CBox


    Photo

    need some help in vb c# 2008


    • Please log in to reply
    4 replies to this topic

    #1 theron324

    theron324

      Private

    • Members+

    • 40 posts
    • Joined: 25-July 08

    Posted 19 June 2010 - 08:43 PM

    it has been a long since i used vb and i was wondering if i wanted to press a button and have a progress bar go 1-100% how would i do this or well what would i type in as the code?

    #2 SotG Caboose

    SotG Caboose

      TheMasterSnails Pimp!

    • Donors+

    • 827 posts
    • Joined: 29-May 08
    • Gender:Male

    Posted 19 June 2010 - 08:53 PM

    progressBar1.Value = progressBar1.Maximum;


    #3 theron324

    theron324

      Private

    • Members+

    • 40 posts
    • Joined: 25-July 08

    Posted 19 June 2010 - 08:59 PM

    progressBar1.Value = progressBar1.Maximum;


    that didnt really help u did put that in the progress bar spot and it was underlined red

    #4 iBotPeaches

    iBotPeaches

      General Grade 6

    • Owner

    • 6,570 posts
    • Joined: 29-July 07
    • Gender:Male
    • Location:Kansas

    Posted 19 June 2010 - 09:08 PM

    Make a timer.

    In the timer's event do

    progressBar1.Value = progressBar1.Value + 1;

    Make sure you add a check prior to that that if value is equal to 100 don't increase, then add like a thread.sleep(200), and that should give the appearance that its moving up.


    #5 theron324

    theron324

      Private

    • Members+

    • 40 posts
    • Joined: 25-July 08

    Posted 19 June 2010 - 09:13 PM

    ahh thx to both of you