Refresh Issue Winform C# 2.0

  • Thread starter Thread starter OZI
  • Start date Start date
O

OZI

hi,

I have a form that can process 100s to 1000s of images.

I have a progress bar also.

when I click on the process button the progress bar works fine until

If I open a window infront of my form then No refresh is happening
If I move my from I get ( Not Responding) in the title of the Form window

But the Processing continues until the end with no problem.

I have a refresh on my Form and all my control in my Loop.

do I need to Multi-Thread this one?

what is going on? can someone explain?

Thank you,

OZI
 
hi,

I have a form that can process 100s to 1000s of images.

I have a progress bar also.

when I click on the process button the progress bar works fine until

If I open a window infront of my form then No refresh is happening
If I move my from I get ( Not Responding) in the title of the Form window

But the Processing continues until the end with no problem.
I have a refresh on my Form and all my control in my Loop.
do I need to Multi-Thread this one?
what is going on? can someone explain?

Are you opening the second window/form using Show or ShowDialog?
Something else?
 
OZI said:
Lilith,

No I am not opening any second Form at all
Just one Form, only one Form.

In your first post, you wrote "If I open a window in front of my form...".

If you don't have a second Form, then what do you mean by "open a window"?

The original post sounds a lot like what happens when you put your
processing into the same thread that handles your UI. The UI part
doesn't get to do anything until the processing is done.

If so, then yes...you need to put the processing into a different thread
(see BackgroundWorker class for example).

But it's hard to say for sure, because the problem description is a
little vague.

Pete
 
Peter,

Any Windows explorer Window to view my folders and Files.

< I reposted with better explanation >

Thank you Peter,

OZI
 
Back
Top