I\'ve never really used threading before in C# where I need to have two threads, as well as the main UI thread. Basically, I have the following.
public void S
When I want the UI to be able to update its display while waiting for a task to complete, I use a while-loop that tests IsAlive on the thread:
Thread t = new Thread(() => someMethod(parameters)); t.Start(); while (t.IsAlive) { Thread.Sleep(500); Application.DoEvents(); }