Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

VB.net Redraw form

Posted on 2008-06-15
3
Medium Priority
?
1,718 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 48

Accepted Solution

by:
Wayne Taylor (webtubbs) earned 2000 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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

In my previous article (http://www.experts-exchange.com/Programming/Languages/.NET/.NET_Framework_3.x/A_4362-Serialization-in-NET-1.html) we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Integration Management Part 2
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…

783 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