This project is read-only.

C# How to stop unzipping process in backgroundworker?

Nov 8, 2014 at 11:58 PM
I am working on a C# WinForms app at the moment, i have a background worker and progressbar and 2 buttons, cancel and start.

I can get the unzipping process to work fine, however i cannot seem to stop the unzipping process when i click the cancel button, how do you cancel a unzip?

This is my cancel button:
private void btnCancel_Click(object sender, EventArgs e)
            if (m_oWorker.IsBusy)
                //Stop/Cancel the async operation here