PocketPC device, WinForms, ConsoleApps, ... -----Message d'origine----- De : Discussion of advanced .NET topics. [mailto:[EMAIL PROTECTED] la part de Shawn Wildermuth Envoye : Thursday, January 10, 2008 22:50 A : ADVANCED-DOTNET@DISCUSS.DEVELOP.COM Objet : Re: [ADVANCED-DOTNET] How to know if the current thread is the UI thread or a worker thread
As everyone will drone on and on about, its unlikely that a DoEvents is really what you want...but in either case, are you using WinForms or what? Thanks, Shawn Wildermuth http://adoguy.com http://wildermuthconsulting.com Microsoft MVP (C#), MCSD.NET, Author and Speaker The Silverlight Tour is coming to a city near you! -----Original Message----- From: Discussion of advanced .NET topics. [mailto:[EMAIL PROTECTED] On Behalf Of Claude Petit Sent: Thursday, January 10, 2008 9:51 PM To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM Subject: [ADVANCED-DOTNET] How to know if the current thread is the UI thread or a worker thread Hi, I want to know when to call Application.DoEvents when I'm waiting for something. The calling thread can be either the ui thread or a worker thread. The ui thread must be able to handle its events, but the worker thread can be blocked. Thank you. Claude Petit =================================== This list is hosted by DevelopMentorR http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com =================================== This list is hosted by DevelopMentor. http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com =================================== This list is hosted by DevelopMentorĀ® http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com