I currently have a progress bar that increments depending on what is set in my program by a drop down box (txtDelayTimKickOver.Text), values range from 1-20. Depending on what value is selected from txtDelayTimKickOver.Text, the program bar is supposed to increment on that number. This will cause a delay in my program in second dependent on that selected value.

My problem is that the progress bar looks like it reaches 100% when it is actually halfway done.

How do I always make the progress reach 100% when it is supposed to based on txtDelayTimKickOver.Text?


Code:
        For i As Integer = 1 To txtDelayTimKickOver.Text
            ProgressIndicator.Value += txtDelayTimKickOver.Text
            System.Threading.Thread.Sleep(1000)
        Next