I have a vb.net 2005 app that cycles through a list of records and inserts them into the database. It works great, but I'm having trouble displaying the results. I have a textbox that gets updated after each iteration:

txtResult.text = vbCrLf & accountid & " : " & strResult

The processing is executed on a button click. The problem is the textbox does not display until after the entire process is finished running, then 500 lines are displayed at once.

Is there any way to force a redraw of the form, or even just a single control (the textbox) on the form? Also why is this happening?