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?
iBotModz CBox
need some help in vb c# 2008
Started by theron324, Jun 19 2010 08:43 PM
4 replies to this topic
#1
Posted 19 June 2010 - 08:43 PM
#2
Posted 19 June 2010 - 08:53 PM
progressBar1.Value = progressBar1.Maximum;
#3
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
Posted 19 June 2010 - 09:08 PM
Make a timer.
In the timer's event do
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.
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
Posted 19 June 2010 - 09:13 PM
ahh thx to both of you