VB.net Redraw form

Ive written a program which does a lot of processing (which works great) but while its processing Id like it to report back to a textbox on the form, however while the code is running, all I get is blank white form.

Is it possible to force the form to redraw on the screen, so I can see the status textbox?

Who is Participating?
Wayne Taylor (webtubbs)Connect With a Mentor Commented:
Use Application.DoEvents() whenever you need the form to redraw.

Éric MoreauSenior .Net ConsultantCommented:
Use Application.DoEvents if you have a huge loop kind of thing, else to extend it more further try to implement threads or can use the new BackGroundWorker class as well
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.