API

Control.InvokeAsync

Posts work to the WinForms UI thread on supported versions.

Formal Syntax & Structure

csharp syntaxcsharp
await control.InvokeAsync(() => control.Text = "Ready");

Working Example

Example Snippetcsharp
// Documentary fragment; see mapped lesson for context.await control.InvokeAsync(() => control.Text = "Ready");
C# & .NET Reference