处理winform控件加载 [英] Handling winform control loading
本文介绍了处理winform控件加载的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如果我创建一个面板并使用for循环添加30个控件,我该如何管理这些控件的加载。如何在网上提供像ajax加载屏幕的加载屏幕?
解决方案
在另一个帖子中显示加载表单。
请参阅以下文章:
安全,简单的多线程Windows窗体,第1部分 [ ^ ]
线程教程 [ ^ ]
c-sharp-calling -form-show-from-another-thread [ ^ ]
如何灿一个新形式-be-run-on-a-different-thread-in-c [ ^ ]
CREATE-A-工作者线程换你的窗口外形在-CSHARP / [ ^ ]
backgroundworker [ ^ ]
如何:使用后台工作呃 [ ^ ]
If I create a panel and I add the 30 controls with a for loop, how could I manage the loading for those control. How could I provide a loading screen like ajax loading screen on the web ?
解决方案
Display "loading form" in another thread.
See these articles:
Safe, Simple Multithreading in Windows Forms, Part 1[^]
Threading Tutorial[^]
c-sharp-calling-form-show-from-another-thread[^]
how-can-a-new-form-be-run-on-a-different-thread-in-c[^]
create-a-worker-thread-for-your-windows-form-in-csharp/[^]
backgroundworker[^]
How to: Use a Background Worker[^]
这篇关于处理winform控件加载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文