BaseFormInvokeOnUIThread Method

Invokes the specified callback on the thread that the control was created on.

Definition

Namespace: KGySoft.WinForms.Forms
Assembly: KGySoft.WinForms (in KGySoft.WinForms.dll) Version: 5.0.1
C#
protected void InvokeOnUIThread(
	Action callback
)

Parameters

callback  Action
The callback to invoke.

Remarks

This method is similar as using InvokeRequired and Invoke(Delegate) together, but it works even when the handle is not created yet, in which case InvokeRequired returns .

The callback is invoked only if Disposing and IsDisposed properties return .

See Also