StrayFlyingToaster
Member
Hello all!
I think I've put this thread in the right place.
I want to use a for/next loop to take up a predetermined length of time before a statement executes, but I haven't gotten the results I want. My code is:
__________
Private Sub runButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles runButton.Click
runButton.Enabled = False
myMessageLabel.Visible = True
For intCounter = 1 To 900000000 ' (about 2.66 seconds)
Next intCounter
myPictureBox.Visible = True
runButton.Enabled = True
For intCounter = 1 To 90000000 ' (about .44 seconds)
Next intCounter
myPictureBox.Visible = False
myMessageLabel.Visible = False
End Sub
__________
Nothing above the first loop executes properly. I've used for/next to eat up time in QBasic, but do I need another method here?
As always, any and all help would be very much appreciated!
ToasterAsString
I think I've put this thread in the right place.
I want to use a for/next loop to take up a predetermined length of time before a statement executes, but I haven't gotten the results I want. My code is:
__________
Private Sub runButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles runButton.Click
runButton.Enabled = False
myMessageLabel.Visible = True
For intCounter = 1 To 900000000 ' (about 2.66 seconds)
Next intCounter
myPictureBox.Visible = True
runButton.Enabled = True
For intCounter = 1 To 90000000 ' (about .44 seconds)
Next intCounter
myPictureBox.Visible = False
myMessageLabel.Visible = False
End Sub
__________
Nothing above the first loop executes properly. I've used for/next to eat up time in QBasic, but do I need another method here?
As always, any and all help would be very much appreciated!
ToasterAsString