Solved

VB.net Redraw form

Posted on 2008-06-15
3
1,687 Views
Last Modified: 2013-11-26
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?

Tony
No-Auto-redraw.JPG
0
Comment
Question by:tonelm54
3 Comments
 
LVL 47

Accepted Solution

by:
Wayne Taylor (webtubbs) earned 500 total points
ID: 21788520
Use Application.DoEvents() whenever you need the form to redraw.

Wayne
0
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 21788523
0
 
LVL 14

Expert Comment

by:rachitkohli
ID: 21791129
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
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Help with error when uploading excel file 3 36
MVC DDL Json Not Binding to Model 2 25
Changes to XXX.exe.config file are not retrieved on restart. 3 39
SSIS Start 2 20
Welcome my friends to the second instalment and follow-up to our Minify and Concatenate Your Scripts and Stylesheets (http://www.experts-exchange.com/Programming/Languages/.NET/ASP.NET/A_4334-Minify-and-Concatenate-Your-Scripts-and-Stylesheets.html)…
Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…

766 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question