Solved

Form goes blurred on losing focus

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

ScreenConnect 6.0 Free Trial

Discover new time-saving features in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

Question has a verified solution.

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

Article by: Kraeven
Introduction Remote Share is a simple remote sharing tool, enabling you to see, add and remove remote or local shares. The application is written in VB.NET targeting the .NET framework 2.0. The source code and the compiled programs have been in…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

778 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