I need to create an modal dialog box that shows some custom progress information. However, I need to do it in a thread while the caller keeps doing its job.
I created a simple BackgroundWorker based class which owns and creates the dialog. It works fine but I am unable to make the dialog modal to my application. I am guessing this is because it is owned and managed by another thread. I was wondering if there is a way to get around this.
The main bits of code is as follows:
public class ProgressDialogThread : BackgroundWorker
protected override void OnDoWork(DoWorkEventArgs e)
And I can simply call this as:
ProgressDialogThread pdt = new ProgressDialogThread();
As I said, the dialog shows and everything else is fine besides this modality issue.
I would greatly appreciate any help someone can give me.