So im trying to use zip files in my program, but i cannot get even basic function to work from io.compression, namely open read:
Imports System.IO
Imports System.IO.Compression
Public Class Form1
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
Dim zipPath As String = "d:\test\testzip.zip"
Using archive As ZipArchive = ZipFile.OpenRead(zipPath)
For Each entry As ZipArchiveEntry In archive.Entries
ListBox1.Items.Add(entry.FullName)
Next
End Using
End Sub
End Class
What im trying to do here is list filenames of files contained in zip archive to listbox.
visual studio just breaks application from running without giving me any errors. This is pretty much just as example on msdn. I did add references to system.io.compression and system.io.compression.filesystem.