for loop

not satisfied

It didn't answered my question. :(

VB6

How do I convert this to the Do Loop statement?

Private Sub btnStart_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnStart.Click
' display hours and minutes

For intHours As Integer = 0 To 3
lblHours.Text = intHours.ToString
For intMinutes As Integer = 0 To 9
lblMinutes.Text = intMinutes.ToString
' refresh interface, then pause execution
Me.Refresh()
System.Threading.Thread.Sleep(500)
Next intMinutes
Next intHours
End Sub
End Class

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>. The supported tag styles are: <foo>, [foo].

More information about formatting options

Type the characters you see in this picture. (verify using audio)
Type the characters you see in the picture above; if you can't read them, submit the form and a new image will be generated. Not case sensitive.