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