Use either a custom developed threading model, or the BackgroundWorker.
Let the background thread periodically post events back to your main GUI thread using a delegate handler, take thread safety into account, or using the ProgressChanged event if you are using the BackgroundWorker.
Magnus Johansson
2009-07-07 11:05:07