edtFTPnet/PRO - Secure FTP component for .NET | Free Trial | Pricing
Determines whether or not event-handlers will be run on the GUI thread if one is available.

Namespace: EnterpriseDT.Net.Ftp
Assembly: edtFTPnetPRO (in edtFTPnetPRO.dll) Version: 8.0.0.20

Syntax

C#
public bool UseGuiThreadIfAvailable { get; set; }
Visual Basic
Public Property UseGuiThreadIfAvailable As Boolean
	Get
	Set
Visual C++
public:
property bool UseGuiThreadIfAvailable {
	bool get ();
	void set (bool value);
}

Field Value

The UseGuiThreadIfAvailable flag determines whether or not event-handlers will be run on the GUI thread if one is available. If the flag is true (the default) then they will be run on the GUI thread if one is available (only for Windows Forms applications). If the flag is false then they will be run on a worker-thread.

Remarks

It is important to note that if event-handlers are run on a worker-thread then Windows Forms related operations will usually fail. Since such operations are commonly used in event-handlers, the default is true.

See Also