Click here to Skip to main content
15,917,991 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
how to create independent light process for each child form in c#.

Actually, the application that I ma creating contains multiple child forms and If one child form takes more time in processing a file then the whole application hands up..

please help me to get ride of this issue..
Posted

1 solution

I assume you're executing this time consuming operation on the UI thread.

Have a look at the BackgroundWorker[^] class.

Delegate the work to a background thread and show the user some notification that work is being done at the moment.
This way the application won't hang.
 
Share this answer
 
v2

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