Cheetah2003
Wanderer
Cross-thread MessageBox.Show() ?
I've been working on a GUI for RunUO for a couple months now.
I discovered MessageBox.Show() and need to call this method from a few places in World.cs, but I get that irritating '{"Cross-thread operation not valid: Control 'RunUO_UI' accessed from a thread other than the thread it was created on."}'
So I had to disable the checking for this, currently. But I was wondering if anyone knew the proper way to cross-thread MessageBox.Show?
I know how to use delegates to do things like modify the text of a control and so forth, but creating a new control as a child of the form on another thread... I can't seem to locate any documentation on how to do that in MSDN.
I've been working on a GUI for RunUO for a couple months now.
I discovered MessageBox.Show() and need to call this method from a few places in World.cs, but I get that irritating '{"Cross-thread operation not valid: Control 'RunUO_UI' accessed from a thread other than the thread it was created on."}'
So I had to disable the checking for this, currently. But I was wondering if anyone knew the proper way to cross-thread MessageBox.Show?
I know how to use delegates to do things like modify the text of a control and so forth, but creating a new control as a child of the form on another thread... I can't seem to locate any documentation on how to do that in MSDN.