I'm really new to threading.
Imagine you create a thread like this:
public MainForm()
{
InitializeComponent();
Thread trd = new Thread(new ThreadStart(this.threadControl));
trd.IsBackground = true;
trd.Start();
}
public void threadControl()
{
classInAnotherNamespace run = new classInAnotherNamespace ();
run.longMethod();
}
How do I send back messages back to the UI from run.longMethod()? For
instance, I might want to let the user know that the routine is
"Beginning procedure 1" or "Ending procedure 1," etc.
I'd sure appreciate any tips.
Thanks!
--Brent