Solved

Form goes blurred on losing focus

Posted on 2006-06-19
2
255 Views
Last Modified: 2010-04-23
Help - my VB.net form goes "blurred" when performing a large if the user switches to another windows application

How do I avoid this as the form makes the program look like it has crashed  (after it goes blurred) until it finishes the active and appears correctly.

Thanks
0
Comment
Question by:rwallacej
2 Comments
 
LVL 43

Assisted Solution

by:TimCottee
TimCottee earned 250 total points
ID: 16932961
Hi rwallacej,

If the activity is a loop then you can use application.doevents inside the loop to allow the processor to be freed up during the cycles of the loop. This will allow the form to repaint. Alternatively you can start your activity on a seperate thread which will have a similar effect.

Tim Cottee
0
 
LVL 10

Accepted Solution

by:
ericwong27 earned 250 total points
ID: 16933131

The BackgroundWorker control (.NET Framework 2.0) gives you easy asynchronous capability with Windows Forms.

Sample code can be found at
http://msdn2.microsoft.com/en-us/library/ywkkz4s1.aspx

0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone 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

This tutorial demonstrates one way to create an application that runs without any Forms but still has a GUI presence via an Icon in the System Tray. The magic lies in Inheriting from the ApplicationContext Class and passing that to Application.Ru…
If you're writing a .NET application to connect to an Access .mdb database and use pre-existing queries that require parameters, you've come to the right place! Let's say the pre-existing query(qryCust) in Access takes a Date as a parameter and l…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

809 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