关于C#.net中的线程 [英] Regarding Threads in C#.net
本文介绍了关于C#.net中的线程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好..我在C#Windows应用程序中工作..所以您能请任何人告诉我如何在单独的线程中运行特定的窗口形式..请向我发送代码..
hi to all..I''m working in C# windows application.. so Will u pls anyone tell me how to run a particular window form in seperate thread.. pls send me the code..
推荐答案
您没有. UI控件始终在同一线程(UI线程)中运行.
长期运行的操作(例如复制文件,搜索数据库,从Internet下载文件)可以分配给另一个线程,然后分配给UI线程.
You do not. UI controls always run in the same thread (UI Thread).
Long running operations like copy files, search database, download a file from the internet can be assigned to another thread then the UI thread.
很多CP文章
这篇关于关于C#.net中的线程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文