Click here to Skip to main content
15,893,814 members
Articles / Desktop Programming / Windows Forms

UnZipper: a File Extraction Tool

Rate me:
Please Sign up or sign in to vote.
3.60/5 (2 votes)
1 Aug 2007CPOL4 min read 44.4K   470   20  
UnZipper is a file extraction tool for decompressing files of a selected type/file extension out of a Zip or a compressed folder.
namespace UnZipper
{
    partial class frmMain
    {
        /// <summary>
        /// Required designer variable.
        /// </summary>
        private System.ComponentModel.IContainer components = null;

        /// <summary>
        /// Clean up any resources being used.
        /// </summary>
        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                components.Dispose();
            }
            base.Dispose(disposing);
        }

        #region Windows Form Designer generated code

        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmMain));
            this.StatusStrip = new System.Windows.Forms.StatusStrip();
            this.FileName = new System.Windows.Forms.ToolStripStatusLabel();
            this.ProgressLabel = new System.Windows.Forms.ToolStripStatusLabel();
            this.ProgressBar = new System.Windows.Forms.ToolStripProgressBar();
            this.MenuStrip = new System.Windows.Forms.MenuStrip();
            this.fileMenu = new System.Windows.Forms.ToolStripMenuItem();
            this.openFile = new System.Windows.Forms.ToolStripMenuItem();
            this.saveFolder = new System.Windows.Forms.ToolStripMenuItem();
            this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
            this.Exit = new System.Windows.Forms.ToolStripMenuItem();
            this.commandMenu = new System.Windows.Forms.ToolStripMenuItem();
            this.Start = new System.Windows.Forms.ToolStripMenuItem();
            this.Stop = new System.Windows.Forms.ToolStripMenuItem();
            this.label1 = new System.Windows.Forms.Label();
            this.ContainingPath = new System.Windows.Forms.TextBox();
            this.DestinationPath = new System.Windows.Forms.TextBox();
            this.label2 = new System.Windows.Forms.Label();
            this.label3 = new System.Windows.Forms.Label();
            this.label4 = new System.Windows.Forms.Label();
            this.NumFiles = new System.Windows.Forms.TextBox();
            this.ContBrowse = new System.Windows.Forms.Button();
            this.DestBrowse = new System.Windows.Forms.Button();
            this.FileType = new System.Windows.Forms.ComboBox();
            this.StatusStrip.SuspendLayout();
            this.MenuStrip.SuspendLayout();
            this.SuspendLayout();
            // 
            // StatusStrip
            // 
            this.StatusStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.FileName,
            this.ProgressLabel,
            this.ProgressBar});
            this.StatusStrip.Location = new System.Drawing.Point(0, 259);
            this.StatusStrip.Name = "StatusStrip";
            this.StatusStrip.Size = new System.Drawing.Size(417, 22);
            this.StatusStrip.TabIndex = 0;
            this.StatusStrip.Text = "stsStrp";
            // 
            // FileName
            // 
            this.FileName.Name = "FileName";
            this.FileName.Size = new System.Drawing.Size(74, 17);
            this.FileName.Text = "Zip File Name:";
            // 
            // ProgressLabel
            // 
            this.ProgressLabel.Name = "ProgressLabel";
            this.ProgressLabel.Size = new System.Drawing.Size(68, 17);
            this.ProgressLabel.Text = "File Progress";
            // 
            // ProgressBar
            // 
            this.ProgressBar.Name = "ProgressBar";
            this.ProgressBar.Size = new System.Drawing.Size(100, 16);
            this.ProgressBar.Step = 1;
            // 
            // MenuStrip
            // 
            this.MenuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.fileMenu,
            this.commandMenu});
            this.MenuStrip.Location = new System.Drawing.Point(0, 0);
            this.MenuStrip.Name = "MenuStrip";
            this.MenuStrip.Size = new System.Drawing.Size(417, 24);
            this.MenuStrip.TabIndex = 1;
            this.MenuStrip.Text = "menuStrip1";
            // 
            // fileMenu
            // 
            this.fileMenu.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.openFile,
            this.saveFolder,
            this.toolStripSeparator1,
            this.Exit});
            this.fileMenu.Name = "fileMenu";
            this.fileMenu.Size = new System.Drawing.Size(35, 20);
            this.fileMenu.Text = "File";
            // 
            // openFile
            // 
            this.openFile.Name = "openFile";
            this.openFile.Size = new System.Drawing.Size(152, 22);
            this.openFile.Text = "Open";
            this.openFile.Click += new System.EventHandler(this.openFile_Click);
            // 
            // saveFolder
            // 
            this.saveFolder.Name = "saveFolder";
            this.saveFolder.Size = new System.Drawing.Size(152, 22);
            this.saveFolder.Text = "Save Location";
            this.saveFolder.Click += new System.EventHandler(this.saveFolder_Click);
            // 
            // toolStripSeparator1
            // 
            this.toolStripSeparator1.Name = "toolStripSeparator1";
            this.toolStripSeparator1.Size = new System.Drawing.Size(149, 6);
            // 
            // Exit
            // 
            this.Exit.Name = "Exit";
            this.Exit.Size = new System.Drawing.Size(152, 22);
            this.Exit.Text = "Exit";
            this.Exit.Click += new System.EventHandler(this.Exit_Click);
            // 
            // commandMenu
            // 
            this.commandMenu.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.Start,
            this.Stop});
            this.commandMenu.Name = "commandMenu";
            this.commandMenu.Size = new System.Drawing.Size(71, 20);
            this.commandMenu.Text = "Commands";
            // 
            // Start
            // 
            this.Start.Name = "Start";
            this.Start.Size = new System.Drawing.Size(109, 22);
            this.Start.Text = "Start";
            this.Start.Click += new System.EventHandler(this.Start_Click);
            // 
            // Stop
            // 
            this.Stop.Name = "Stop";
            this.Stop.Size = new System.Drawing.Size(109, 22);
            this.Stop.Text = "Stop";
            this.Stop.Click += new System.EventHandler(this.Stop_Click);
            // 
            // label1
            // 
            this.label1.AutoSize = true;
            this.label1.Location = new System.Drawing.Point(12, 42);
            this.label1.Name = "label1";
            this.label1.Size = new System.Drawing.Size(194, 13);
            this.label1.TabIndex = 2;
            this.label1.Text = "Containing Path of compressed zip files:";
            // 
            // ContainingPath
            // 
            this.ContainingPath.Location = new System.Drawing.Point(12, 58);
            this.ContainingPath.Name = "ContainingPath";
            this.ContainingPath.Size = new System.Drawing.Size(227, 20);
            this.ContainingPath.TabIndex = 3;
            // 
            // DestinationPath
            // 
            this.DestinationPath.Location = new System.Drawing.Point(12, 111);
            this.DestinationPath.Name = "DestinationPath";
            this.DestinationPath.Size = new System.Drawing.Size(227, 20);
            this.DestinationPath.TabIndex = 5;
            // 
            // label2
            // 
            this.label2.AutoSize = true;
            this.label2.Location = new System.Drawing.Point(12, 95);
            this.label2.Name = "label2";
            this.label2.Size = new System.Drawing.Size(196, 13);
            this.label2.TabIndex = 4;
            this.label2.Text = "Destination Path for decompressed files:";
            // 
            // label3
            // 
            this.label3.AutoSize = true;
            this.label3.Location = new System.Drawing.Point(12, 203);
            this.label3.Name = "label3";
            this.label3.Size = new System.Drawing.Size(227, 13);
            this.label3.TabIndex = 6;
            this.label3.Text = "Number of files that have been decompressed:";
            // 
            // label4
            // 
            this.label4.AutoSize = true;
            this.label4.Location = new System.Drawing.Point(12, 149);
            this.label4.Name = "label4";
            this.label4.Size = new System.Drawing.Size(121, 13);
            this.label4.TabIndex = 7;
            this.label4.Text = "File type to decompress:";
            // 
            // NumFiles
            // 
            this.NumFiles.Enabled = false;
            this.NumFiles.Location = new System.Drawing.Point(12, 219);
            this.NumFiles.Name = "NumFiles";
            this.NumFiles.Size = new System.Drawing.Size(61, 20);
            this.NumFiles.TabIndex = 9;
            // 
            // ContBrowse
            // 
            this.ContBrowse.Location = new System.Drawing.Point(246, 58);
            this.ContBrowse.Name = "ContBrowse";
            this.ContBrowse.Size = new System.Drawing.Size(53, 23);
            this.ContBrowse.TabIndex = 10;
            this.ContBrowse.Text = "Browse";
            this.ContBrowse.UseVisualStyleBackColor = true;
            this.ContBrowse.Click += new System.EventHandler(this.ContBrowse_Click);
            // 
            // DestBrowse
            // 
            this.DestBrowse.Location = new System.Drawing.Point(246, 111);
            this.DestBrowse.Name = "DestBrowse";
            this.DestBrowse.Size = new System.Drawing.Size(53, 23);
            this.DestBrowse.TabIndex = 11;
            this.DestBrowse.Text = "Browse";
            this.DestBrowse.UseVisualStyleBackColor = true;
            this.DestBrowse.Click += new System.EventHandler(this.DestBrowse_Click);
            // 
            // FileType
            // 
            this.FileType.FormattingEnabled = true;
            this.FileType.Location = new System.Drawing.Point(15, 165);
            this.FileType.Name = "FileType";
            this.FileType.Size = new System.Drawing.Size(121, 21);
            this.FileType.TabIndex = 12;
            // 
            // frmMain
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize = new System.Drawing.Size(417, 281);
            this.Controls.Add(this.FileType);
            this.Controls.Add(this.DestBrowse);
            this.Controls.Add(this.ContBrowse);
            this.Controls.Add(this.NumFiles);
            this.Controls.Add(this.label4);
            this.Controls.Add(this.label3);
            this.Controls.Add(this.DestinationPath);
            this.Controls.Add(this.label2);
            this.Controls.Add(this.ContainingPath);
            this.Controls.Add(this.label1);
            this.Controls.Add(this.StatusStrip);
            this.Controls.Add(this.MenuStrip);
            this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
            this.MainMenuStrip = this.MenuStrip;
            this.MaximizeBox = false;
            this.MaximumSize = new System.Drawing.Size(425, 315);
            this.MinimizeBox = false;
            this.MinimumSize = new System.Drawing.Size(425, 315);
            this.Name = "frmMain";
            this.Text = "UnZipper";
            this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.frmMain_FormClosing);
            this.StatusStrip.ResumeLayout(false);
            this.StatusStrip.PerformLayout();
            this.MenuStrip.ResumeLayout(false);
            this.MenuStrip.PerformLayout();
            this.ResumeLayout(false);
            this.PerformLayout();

        }

        #endregion

        private System.Windows.Forms.StatusStrip StatusStrip;
        private System.Windows.Forms.MenuStrip MenuStrip;
        private System.Windows.Forms.ToolStripMenuItem fileMenu;
        private System.Windows.Forms.ToolStripMenuItem openFile;
        private System.Windows.Forms.ToolStripSeparator toolStripSeparator1;
        private System.Windows.Forms.ToolStripMenuItem Exit;
        private System.Windows.Forms.ToolStripMenuItem commandMenu;
        private System.Windows.Forms.ToolStripMenuItem saveFolder;
        private System.Windows.Forms.ToolStripMenuItem Start;
        private System.Windows.Forms.ToolStripMenuItem Stop;
        private System.Windows.Forms.ToolStripStatusLabel ProgressLabel;
        private System.Windows.Forms.ToolStripProgressBar ProgressBar;
        private System.Windows.Forms.ToolStripStatusLabel FileName;
        private System.Windows.Forms.Label label1;
        private System.Windows.Forms.TextBox ContainingPath;
        private System.Windows.Forms.TextBox DestinationPath;
        private System.Windows.Forms.Label label2;
        private System.Windows.Forms.Label label3;
        private System.Windows.Forms.Label label4;
        private System.Windows.Forms.TextBox NumFiles;
        private System.Windows.Forms.Button ContBrowse;
        private System.Windows.Forms.Button DestBrowse;
        private System.Windows.Forms.ComboBox FileType;
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Web Developer
United States United States
I am a software, database, and gis developer. I love the challenge of learning new ways to code.

Comments and Discussions