Progress Bar progress

I have a loop I want to show progress on...

Do
progressbar1.Increment(1)
i = i+1
Loop until i = 50

But how do I set it so that when it hits 50 it will be full>
progressbar1.length?
~Thanks!~

[257 byte] By [Modderman] at [2007-12-16]
# 1
Set ProgressBar.Maximum to 50.
DavidM.Kean at 2007-9-9 > top of Msdn Tech,Visual Basic,Visual Basic General...