I'm doing a big loop in my program and throughout the loop I'm updating the textbox in the form.

However the form "hangs" untill the loop is done. How can I keep the form visible and be able to read the updated textbox while the loop is still running?
I tried Me.Update() but it didn't work. I'm sure there was something like processdata or something like that but I can't find it anymore...

Example

Code:
For x = 1 To 10000

    form1.textbox.text=x
    Me.Update()

Next