Xceed Zip Compression Library Documentation
Listing the contents of a zip file (by collection)
Getting started quickly > Listing the contents of a zip file (by collection)

VB example Delphi example VC++ example C# example VB.NET example

Introduction

Xceed Zip Compression Library can list the contents of a zip file either by triggering an event for each file that provides the file's name and other information, or by providing you with the complete listing (file names and other information) in a collection object. Listing by event is easier and takes less memory, but is not always possible or useful. Listing by obtaining a collection object is slightly faster and allows you to enumerate the collection as often as you need without re-listing the zip file. See the Listing by event getting started quickly topic if you are interested in the former technique. 

Basic listing by collection

To list the contents of a zip file, perform the following 4 steps. Put the Xceed Zip control on a form, add a listbox to the form (if you want to display the list files in a listbox) and then:

Things you should consider 

The main questions you should ask yourself when listing files are:

Other questions you may want to consider are:

If there's anything else you need to do that's not mentioned here, consult the Properties topic, or search the index – chances are, Xceed Zip does what you need. If not, ask Xceed Software whether it is possible or not.