View Single Post
Old 11-03-2006, 02:59 AM   #1 (permalink)
Cheetah2003
Forum Novice
 
Cheetah2003's Avatar
 
Join Date: Jun 2006
Location: Laramie, Wyoming
Age: 37
Posts: 359
Send a message via ICQ to Cheetah2003 Send a message via AIM to Cheetah2003 Send a message via MSN to Cheetah2003 Send a message via Yahoo to Cheetah2003
Default 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.
__________________
Take a walk on The Wild side.
Cheetah2003 is offline   Reply With Quote