Hi,
Have a little usage issue and yes I'm new to VB..Simple little program that will update the text of statusstrip. Works with If Then or Select Case but NOT For next The following code wil not show 1,2,3,4,etc only 10 is shown....
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click Dim i For i = 0 To 10
ToolStripStatusLabel1.Text =
"SuperTest: " & i Sleep(500) Next End Subproblem fixed...
Just a bit more searching and I found my answer...
Application.DoEvents()
StatusStrip usage
Allen White
Application.doevents is definately preferable over a sleep which will suspend the thread completely for the duration - therefore you application effectively stops for the duration.
Use application.doevents on when necessary - you can inflict a heavy performance penalty if you using it very frequently within a fast running loop.