I've got three loops in my program and inside the loops I do some database interaction and some other local stuff like formatting the data. One loop about 100 times, the next 175, and the next 1550 times. At the very beginning of each loops I've got something to the effect of:
so every time through the loop it says like importing run 1 of 1550 then the next time it's 2 and yeah, it works great...until I change focus to another program. While it's running if I go to any other program at all and come back, the label is stuck and no longer refreshes until the whole thing is done. So I guess that's not a very good way to code it or I need an extra command or something. Anyone know how to make that work?Code:lblStatus.Text = "Importing Run " & (d + 1).ToString & " of " & dsXML.Tables("run").Rows.Count.ToString Me.Refresh()





Reply With Quote