Winforms-在另一个线程中调用方法 [英] Winforms - Invoking a method in another thread

查看:40
本文介绍了Winforms-在另一个线程中调用方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在与winform按钮不同的线程中调用方法以使ui不会冻结或造成延迟的最佳实践是什么?

What is the best practice to invoke a method in a different thread from a winform button so the ui doesn't freeze or creates a delay?

推荐答案

第一步是

如果这不符合您的要求,或者您需要更高级的内容,则应查看以下内容之一:

If this doesn't meet your requirements or you need more advanced stuff you should take a look into one of these:

这篇关于Winforms-在另一个线程中调用方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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