如何获取线程的状态 [英] How to get the Status of thread

查看:130
本文介绍了如何获取线程的状态的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我正在创建一个使用线程处理从FTP下载文件的应用程序。我需要在下载文件后放一个消息框。



谢谢



SIVASANKARAN G

Hi,

I am creating a application for downloading files from FTP using Threading Process. i need to put a message box after the files downloaded.

Thanks

SIVASANKARAN G

推荐答案

您应该通知 UI 线程操作完成,请参阅如何:对Windows窗体控件进行线程安全调用 [ ^ ]。
You should notify the UI thread the operation completion, see How to: Make Thread-Safe Calls to Windows Forms Controls[^].


这篇关于如何获取线程的状态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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