PC Review


Reply
Thread Tools Rate Thread

Distorted form while application is running

 
 
=?Utf-8?B?TWlrZSBD?=
Guest
Posts: n/a
 
      20th Oct 2004
Hey all hope you can answer my question.

I have a vb.net application that has one form with a button and a label.
When you click the button it kicks off a very CPU intensive proccess
(iterations through numerous workbooks with multiple worksheets). Common
proccessing time is around 3 minutes.

My problem is during that three minutes. While the program is chugging
away if I pull up another window(such as Outlook) and then go back to my form
it is distorted. It looks like part of the window I opened is stil drawn on
the VB form. Unforunately I am unable to see the label on the form that
contains a description of the workbook I am currently proccessing. Is there
anyway I can prevent this distortion from happenening?

BTW In between workbooks I update the label and refresh the form which
clears it up but I do not want to referesh the form every second or so to
prevent this from happening.

Any help would be greatly appreciated
Mike C

 
Reply With Quote
 
 
 
 
scorpion53061
Guest
Posts: n/a
 
      21st Oct 2004
Try placing these operations in a separate thread from the form thread.


"Mike C" <Mike (E-Mail Removed)> wrote in message
news:3E6BDB59-5E11-4D5C-B4E0-(E-Mail Removed):
> Hey all hope you can answer my question.
>
> I have a vb.net application that has one form with a button and a
> label.
> When you click the button it kicks off a very CPU intensive proccess
> (iterations through numerous workbooks with multiple worksheets). Common
>
> proccessing time is around 3 minutes.
>
> My problem is during that three minutes. While the program is chugging
>
> away if I pull up another window(such as Outlook) and then go back to my
> form
> it is distorted. It looks like part of the window I opened is stil drawn
> on
> the VB form. Unforunately I am unable to see the label on the form that
> contains a description of the workbook I am currently proccessing. Is
> there
> anyway I can prevent this distortion from happenening?
>
> BTW In between workbooks I update the label and refresh the form which
> clears it up but I do not want to referesh the form every second or so to
>
> prevent this from happening.
>
> Any help would be greatly appreciated
> Mike C


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting form properties from another running application =?Utf-8?B?QW5kcmV3IEUgQ2hhcG1hbg==?= Microsoft VB .NET 1 28th Sep 2006 06:42 AM
Need help for COM running from Web application, but not form .EXE application JeffQ888@gmail.com Microsoft ASP .NET 1 23rd May 2006 04:20 PM
Open Form (VBA Running) and Application.OnTime Ronald Dodge Microsoft Excel Programming 1 16th Dec 2005 02:41 PM
running an application embedded in c# form (pocket pc) khaled Microsoft Dot NET Compact Framework 0 14th Dec 2005 10:00 AM
DDE application hang when there is another .NET window form application is running at the same time Joshua Chan Microsoft Dot NET Framework Forms 1 11th Jan 2005 04:27 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:30 AM.