
MessageBox.Show("Error during Zip operation!", "Alert")

MessageBox.Show("Files are Zipped Successfully!", "Alert") If (saveFileDialog1.ShowDialog() = DialogResult.OK) SaveFileDialog1.Filter = "zip files (*.zip)|*.zip|rar files (*.rar)|*.rar" SaveFileDialog saveFileDialog1 = new SaveFileDialog() MessageBox.Show("select file to be Zip","Alert") Private void btnZip1_Click(object sender, EventArgs e) If (fDialog.ShowDialog() = DialogResult.OK) fDialog.Filter = "JPEG Files|*.jpeg|GIF Files|*.gif" OpenFileDialog fDialog = new OpenFileDialog() Private void btnOpen1_Click(object sender, EventArgs e) Here I zip single file and whole folder with secured password

In this article I have explained in detail with C#.NET concept.ġ) Using OpenFileDialog control take file and zip with secured passwordĢ) Using FolderBrowserDialog to Zip entire folder and files with secured passwordģ) Using FolderBrowserDialog to Zip only condition based files folder and files like (.jpg/jpeg) If anyone open/ unzip that file it should ask password to open/unzip. Here I explained in depth about zip process in C#.NET with open file dialogue, Save file dialogue etc.įor example I have folder and files in my system, I want to create zip file and set password. In my previous article I have explained about zip process in ASP.NET. Learn how to create zip file in C#.NET with secured password?
