Moin Moin, ich habe ein Problem.
Und zwar möchte ich währenddessen ich eine Datei unzippe einen Progress haben, welcher in form einer ProgressBar wiedergegeben wird.
So sieht der Code aus zum entpacken:
Jedoch weiß ich nicht, wie ich den Progress ausgeben soll.
Verwendet wird DotNetZip
archive.codeplex.com/?p=dotnetzip
Würde mich über eure Hilfe freuen.
Mfg
Und zwar möchte ich währenddessen ich eine Datei unzippe einen Progress haben, welcher in form einer ProgressBar wiedergegeben wird.
So sieht der Code aus zum entpacken:
VB.NET-Quellcode
- Private Async Function Downloader_DownloadFileCompletedAsync(ByVal sender As Object, ByVal e As System.ComponentModel.AsyncCompletedEventArgs) As Task Handles downloader.DownloadFileCompleted
- Await Task.Run(Sub()
- Dim ZipToUnpack As String = "Patch.zip"
- Using zip1 As ZipFile = ZipFile.Read(ZipToUnpack)
- Dim patch As ZipEntry
- For Each patch In zip1
- patch.Extract(ExtractExistingFileAction.OverwriteSilently)
- Next
- File.Delete("patch.rar")
- End Using
- End Sub)
- ....
- End Function
Jedoch weiß ich nicht, wie ich den Progress ausgeben soll.
Verwendet wird DotNetZip
archive.codeplex.com/?p=dotnetzip
Würde mich über eure Hilfe freuen.
Mfg