Share via


Overview | Methods | Fields | This Package | All Packages

OverviewMethodsFieldsThis PackageAll Packages

Control.invokeAsync

Executes the specified delegate on the thread that created the control's handle and returns immediately (because the delegate is invoked asynchronously).

Syntax

public final void invokeAsync( Delegate method )

public final void invokeAsync( Delegate

method**, Object** args[] )

Parameters

method

A delegate to a method that takes no parameters.

method

A delegate to a method that takes parameters of the same number and type that are contained in args.

args

An array of objects to pass as arguments to the specified method. This can be null if no arguments are needed.

Exceptions

WFCSystemException thrown if the control's thread is blocked.

Remarks

This method cannot be called if the control's handle hasn't been created yet. There are four functions on a control that are safe to call from any thread: getInvokeRequired, invoke, invokeAsync, and createGraphics. For all other method calls, you should use one of the invokeXXX methods to marshal the call to the control's thread.