Solved

VB.net Redraw form

Posted on 2008-06-15
3
1,689 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
API v SOA 8 44
Need to sort columns in DataGridView 4 41
orderby list (from Json) 1 32
Convert VB web project to C# 3 43
Flash (http://en.wikipedia.org/wiki/Adobe_Flash) has evolved over the years to where it has become a masterful tool for displaying content screen.  It has excellent layout placement, UI precision as well as rendering capabilities. This, along with t…
A basic question.. “What is the Garbage Collector?” The usual answer given back: “Garbage collector is a background thread run by the CLR for freeing up the memory space used by the objects which are no longer used by the program.” I wondered …
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

696 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