问题描述
我正在为某些数学计算开发桌面应用程序。我已经完成了我的应用程序的gui&编码。但是,当我运行应用程序并单击执行操作的按钮时,应用程序不会响应超过15分钟。我在网上搜索并看到使用后台工作线程执行操作并更新ui上的进度条控件。这不起作用。进度条停止在2%。计算量很大,并且会进行多次循环。我需要建议怎么做。
我尝试过的事情:
我在网上搜索并看到使用后台工作线程执行操作并更新ui上的进度条控件。这不起作用。进度条停止在2%。计算量很大,并且会进行多次循环。我需要有关如何做的建议。
I'm developing a desktop application for certain mathematical computation. I've finished building my application's gui & coding. However, when I run the application and click the button that does the operation, the application does not respond for over 15 minutes. I searched online and saw something on using backgroundworker thread that does the operation and update the progressbar control on the ui. This didn't work as well. The progressbar stops at 2%. The computation is heavy and does several looping. I need advice on what to do.
What I have tried:
I searched online and saw something on using backgroundworker thread that does the operation and update the progressbar control on the ui. This didn't work as well. The progressbar stops at 2%. The computation is heavy and does several looping. I need advice on what to do.
推荐答案
这篇关于如何使用C#构建响应式应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!