thiago costa

thiago costa

  • NA
  • 319
  • 0

How To Unzip File using CSharp? With the Click of a Button?

Oct 12 2009 10:25 PM
Guys, I have visual c# express...

Here is my situation.

I want to click on Button one, and extract the existing update.zip file into a desired folder.


This is what I have.

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.IO.Compression;

 private void button1_Click(object sender, EventArgs e)
        {
             //unzip update.zip to c:\pictures

              ?????????????????????????????????????
        }


See? most google searches leaded me to... seamed to be Programs to combine with Visual C# express, like ziplib, etc etc..

I read all those forums, and Nothing worked >< ... am I putting the chuncks of codes in the wrong places? I tryed so much, for so many hours. Nothign worked :( .... Any sujestions?


Answers (4)