I have a C# Windows application that does many tasks. some of these tasks are very time wasting. When I run these type of tasks, the other parts of my application will be disabled.
How can I write my application to avoid this? Is using threads a good solution? Is it safe?
You’ve had the background worker suggested. The other way is to start a new thread yourself.
You can also use the ParameterizedThreadStart if you want to throw in arguments to your DoStuff() method.