Starts executing of a background operation.

Namespace: System.Extensions.Windows.Forms
Assembly: System.Extensions (in System.Extensions.dll) Version: 0.0.0.5 (0.0.0.5)

Syntax

C#
public bool RunWorker(
	Form owner,
	Object argument
)
Visual Basic
Public Function RunWorker ( 
	owner As Form,
	argument As Object
) As Boolean
Visual C++
public:
bool RunWorker(
	Form^ owner, 
	Object^ argument
)
F#
member RunWorker : 
        owner : Form * 
        argument : Object -> bool 

Parameters

owner
Type: System.Windows.Forms..::..Form
The owning form that is launching this dialog.
argument
Type: System..::..Object
A parameter for use by the background operation to be executed in the DoWork event handler.

Return Value

Type: Boolean
True if the background operation completed without being cancelled or throwing an error.

Exceptions

See Also