请教:2003里可以,为什么2005会出异常?
jxw 2006-03-16 06:11:01 我在模块dll里开了线程,用事件的办法试图传出数据进行处理,处理的时候使用了外部程序的控件对象。在2003里使用的好好的,但是我移植到2005(.net 2.0)中就出了问题,每次在从模块里触发的事件里使用控件时,就报了异常:Cross-thread operation not valid: Control '###' accessed from a thread other than the thread it was created on. 请问高手,这是为何?
难道我只能通过外部程序的界面事件才能使用这些外部的控件么?或者我应该对模块dll做什么设置?还望答复。