需要多线程代码。 [英] Multi threading Code is required .

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

问题描述

我想在库存年度结算时计算利润和损失,当我用来运行相关表格时,它将我的应用程序置于忙状态,在当前流程未完成之前没有其他任何事情可以完成,我想要通过多线程技术处理它。这样我就可以在One Form关闭年份并执行计算的同时处理其他表单。

I want to calculate the Profits and loses at the time of Inventory Year closing, when i use to run the ralated form, it put my Application to bussy state nothing else can be done until the current process is not completed, i want to handle it through Multi Threading Technique. So that i can work on other Forms as well at the same time when One Form is closing the year and performing calculations.

推荐答案

将代码移动到

BackgroundWorker [ ^ ] - 该链接包含一个示例,该类可以轻松实现更新进度显示。



链接更新 - 截断错误[/ edit]
Move the code into a
BackgroundWorker[^] - the link includes an example, and the class can easily update a progress display.

[edit]Link updated - truncate bug[/edit]


这篇关于需要多线程代码。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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