This project is read-only.

Files extracting all at once.

Aug 27, 2012 at 3:33 AM

Hi. I am having a problem getting vb.net to extract one file at a time with SevenZipSharp. Instead my project extracts all the files at once freezing my program. I figure I could use the ExtractionFinished Event but I have no idea how that would work for vb.net as I have only seen examples for C# code.

Aug 31, 2012 at 10:53 PM

Ok. I got it now. You can close this.

For those of you wondering:

    Private Sub ext_ExtractionFinished(ByVal sender As Object, ByVal e As EventArgs)
        MessageBox.Show("Extraction Completed")
    End Sub

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        SevenZipExtractor.SetLibraryPath("C:\7z.dll")
        Dim ext As SevenZipExtractor = New SevenZipExtractor("C:\Test.7z")
        ext.BeginExtractArchive("C:\Test")
        AddHandler ext.ExtractionFinished, AddressOf ext_ExtractionFinished
    End Sub