Xceed FTP Library Documentation
BackgroundProcessing property example
Example topics > BackgroundProcessing property example

As an example, consider that if the BackgroundProcessing property is left at its default value of False, and you run the SendFile method, with code similar to this:

XceedFtp1.SendFile( "c:\send\sendme.txt", 0, "/uploads/sendme.txt", False)

...the rest of your code follows here

…the complete file send operation will be completed, then the rest of your code will be executed.

However, if the BackgroundProcessing property is set to True, running the same code above will cause the file send operation to start, then the rest of your code will immediately be executed, and later, when the file send operation has completed, the ProcessCompleted event will be triggered by the XceedFtp control to let you know that the file send operation has completed.