开发者

How to determine a thread UI thread

开发者 https://www.devze.com 2022-12-31 12:03 出处:网络
what is the sim开发者_如何学Gople way to know which thread is UI thread or the thread which create a control in a WinForm app?

what is the sim开发者_如何学Gople way to know which thread is UI thread or the thread which create a control in a WinForm app?

When I opened window task manager, I found 8 threads for my winform application. So how many of them are UI threads.

generally, how many UI threads created by the winForm engine?


This may not answer your question since I don't know exactly what you are trying to accomplish but if Control.InvokeRequired is false then you are on the thread that created the control.

0

精彩评论

暂无评论...
验证码 换一张
取 消