UtilFormsControlInvokeT Method

Synchronouslly Executes an encapsulated method on the thread that owns the specified control.

This method avoids cross-threading exceptions.

Definition

Namespace: DevCase.Core.Application.Forms
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static void ControlInvoke<T>(
	T ctrl,
	Action<T> method
)
where T : Control

Parameters

ctrl  T
The Control to invoke.
method  ActionT
The encapsulated method to be called.

Type Parameters

T
The type of the control

Example

This is a code example.
C#
No code example is currently available or this language may not be supported.

See Also