Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Application::MessageLoop Property

 

Gets a value indicating whether a message loop exists on this thread.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public:
property bool MessageLoop {
	static bool get();
}

Property Value

Type: System::Boolean

true if a message loop exists; otherwise, false.

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.

.NET Framework
Available since 1.1
Return to top
Show: