Solved

Form goes blurred on losing focus

Posted on 2006-06-19
2
258 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
[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
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

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

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

Introduction When many people think of the WebBrowser (http://msdn.microsoft.com/en-us/library/2te2y1x6%28v=VS.85%29.aspx) control, they immediately think of a control which allows the viewing and navigation of web pages. While this is true, it's a…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…

617 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