Solved

Form goes blurred on losing focus

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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

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…
Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

708 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

17 Experts available now in Live!

Get 1:1 Help Now