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 static bool MessageLoop { 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: