Jump to content

cbox


Recommended Posts

Posted
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?
Posted

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.

 

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...