Windows窗体应用程序中的多线程? [英] multithreading in windows forms application?

查看:74
本文介绍了Windows窗体应用程序中的多线程?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好frendz,我是Windows窗体应用程序的新手。当我输入名字,姓氏并按提交时,我正在创建具有字段和按钮的表单。然后假设此操作需要1分钟。但我希望我的用户不应该等待那个时间。并且应该继续并填补其他领域。如何在这里使用多线程。请上传代码。在此先感谢。

hello frendz, i am new to windows forms application. I am creating form which has fields and button, when i enter first name , last name and press submit. Then suppose this operation take 1 min. But i want my user shouldnt wait for that time. And should go ahead and fill other fields. How to use multithreading here.? Pls upload code. Thanks in advance.

推荐答案

请参阅Tasks或BackgroundWorker类。 此处您可以比较这两个类。
See Tasks or BackgroundWorker class. Here you can compare this two classes.


这篇关于Windows窗体应用程序中的多线程?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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