An NDoc Documented Class Library

FTPConnection.ParentControl Property

Reference to Windows Forms controls (if available).

public System.Windows.Forms.Control ParentControl {get; set;}

Remarks

This property only applies to Windows Forms applications.

If the ParentControl property is set then all events and callbacks will be executed in the thread in which this control was created. If it is not set then FTPConnection will still attempt to find a control on whose thread events and callback will be executed. This prevents cross-thread errors.

See Also

FTPConnection Class | EnterpriseDT.Net.Ftp Namespace