在C#中使用线程的可见文本框
问题描述:
如何使用c#中的线程显示文本框?
how to visible textbox using thread in c#?
答
您必须调用一个更改UI的委托. Google是您的朋友.我搜索了这个短语-从线程中更改c#的UI",下面的链接是超过110万个结果中的第一个:
http://blogs.msdn.com/b/csharpfaq/archive/2004/03/17/91685.aspx [ ^ ]
You have to invoke a delegate that changes the UI. Google is your friend. I searched for this phrase - "c# change UI from thread", and the following link is the first of over 1.1 MILLION results:
http://blogs.msdn.com/b/csharpfaq/archive/2004/03/17/91685.aspx[^]
我认为您是想从已启动的另一个线程更改文本框的可见状态吗?
如果是这样,请在此处阅读
如何:对Windows窗体控件进行线程安全调用
http://msdn.microsoft.com/en-us/library/ms171728.aspx [ ^ ]
I take it you mean you want to change the visible status of a textbox from another thread you have started?
If so, read here
How to: Make Thread-Safe Calls to Windows Forms Controls
http://msdn.microsoft.com/en-us/library/ms171728.aspx[^]