Setup a
Timer
that sets the
Progressbar.Value
property once every second. How far the progressbar goes with each update depends on how long you want to run befor the progress bar reaches 100 percent. If you want it to reach 100% in 60 seconds, you have to perform math on the value.
Dim increment As Integer = 100 / 60;
progressbar1.Value = Math.Min(100, Progressbar1.Value + increment)