在C#中使用线程的可见文本框 [英] Visible Text box using thread in C#

查看:199
本文介绍了在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[^]


这篇关于在C#中使用线程的可见文本框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆