What is the function I can use instead of Do events (used in vb6.0) in (vb2010)

advertisements
for a=0 to 1000
lable.text=a
next

above loop does not update the text status of lable, while loop is running, it updates only at the end of for loop, but i tried with vb6.0 it is possible by using Do events. but i dont know what is the function in vb2010 beta 2. plz help me to solve this problem.


You could try

Application.DoEvents()

Or even

lable.Refresh()