Gets a value indicating whether a message loop exists on this thread.
Public Shared ReadOnly Property MessageLoop As Boolean
public static bool MessageLoop { get; }
public: static property bool MessageLoop { bool get (); }
static member MessageLoop : bool
When hosting Windows Forms in other environments, such as unmanaged applications, this property will always return false. Use RegisterMessageLoop to instruct Windows Forms if the hosting environment still has an active message loop.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2