2
Reply

C# Threading - Beginner

Alex Brown

Alex Brown

Jul 4 2008 12:46 PM
4.3k

Hi,

I've got a windows application that references a class library -

in my class library i have a method that returns a large collection.

on the windows form, i have a button, that calls the method.... the method takes about a minute or so to do what it needs to do (its a large operation)
when the button is pressed, the UI locks up - how can i make this happen on a different thread, and also, is it possible to add a progress bar to show how far along the operation is?

regards,

alex


Answers (2)