Solved

VB.net Redraw form

Posted on 2008-06-15
3
1,683 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!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

The object model of .Net can be overwhelming at times – so overwhelming that quite trivial tasks often take hours of research. In this case, the task at hand was to populate the datagrid from SQL Server database in Visual Studio 2008 Windows applica…
Recently while returning home from work my wife (another .NET developer) was murmuring something. On further poking she said that she has been assigned a task where she has to serialize and deserialize objects and she is afraid of serialization. Wha…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

813 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now