C# Winforms convert running code to cancellable thread

Job ID: 37120509

Budget: $10 – $30 USD

I have running code long process exports from DB to Excel and Images files and uploads them to FTP.
The ExcelExport works but runs in the back and the user can't close the application. The code still runs in the background.
Related categories: C# Programming Software Architecture ASP.NET