Click here to Skip to main content
15,792,397 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hi every one

i made project in c#
and i used backgroundworker to do some work takes some time
but when i run background even if i do nothing else in the form
when i minimized the from the program still working but the form stop working "can't do any thing in the form"

so any help??

Sounds like the work is being done in the forground thread, or are you trying to interact with gui objects from the worker thread without using Invoke?

How do you initialize the thread?

Espen Harlinn
Share this answer
Do you mean that once minimized, you can't un-minimize it?

Do you mean that some sort of progress indicator isn't being updated when it's minimized?

Are you updating the UI properly?
Share this answer
Espen Harlinn 14-Jan-11 10:29am    
Got your message - I'll try not to do it again :)
just put your code where you start the BackGroundWorker and code in BackGroudWorker

We all will try our best to help you buddy.. :)

I really seems that UI thread is busy for doing something or your worker thread is updating UI without using invoke.

Look into your code carefully..
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900