Click here to Skip to main content
15,895,084 members
Articles / Programming Languages / C#

Convert MP3 to EXE

Rate me:
Please Sign up or sign in to vote.
4.04/5 (89 votes)
18 Mar 2008CPOL2 min read 227.3K   5K   173  
An article showing how to convert MP3 file to executable file
namespace mp3_2_exe
{
    partial class Form1
    {
        /// <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(Form1));
            this.textBox1 = new System.Windows.Forms.TextBox();
            this.label2 = new System.Windows.Forms.Label();
            this.filechoosegroupbox = new TestSample.GroupBoxWithChamfer();
            this.browsebutton = new DotNetSkin.SkinControls.SkinButton();
            this.iconchoosegroupbox = new TestSample.GroupBoxWithChamfer();
            this.skinButton2 = new DotNetSkin.SkinControls.SkinButton();
            this.pictureBox1 = new System.Windows.Forms.PictureBox();
            this.skinRadioButton2 = new DotNetSkin.SkinControls.SkinRadioButton();
            this.skinRadioButton1 = new DotNetSkin.SkinControls.SkinRadioButton();
            this.skinButton1 = new DotNetSkin.SkinControls.SkinButton();
            this.backgroundWorker1 = new System.ComponentModel.BackgroundWorker();
            this.linkLabel1 = new System.Windows.Forms.LinkLabel();
            this.filechoosegroupbox.SuspendLayout();
            this.iconchoosegroupbox.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
            this.SuspendLayout();
            // 
            // textBox1
            // 
            this.textBox1.Location = new System.Drawing.Point(18, 33);
            this.textBox1.Name = "textBox1";
            this.textBox1.ReadOnly = true;
            this.textBox1.Size = new System.Drawing.Size(245, 20);
            this.textBox1.TabIndex = 1;
            // 
            // label2
            // 
            this.label2.AutoSize = true;
            this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
            this.label2.Location = new System.Drawing.Point(155, 234);
            this.label2.Name = "label2";
            this.label2.Size = new System.Drawing.Size(305, 17);
            this.label2.TabIndex = 4;
            this.label2.Text = "The file has been successfully converted";
            this.label2.Visible = false;
            // 
            // filechoosegroupbox
            // 
            this.filechoosegroupbox.BorderWidth = 6;
            this.filechoosegroupbox.ColorScheme = TestSample.EnmColorScheme.Green;
            this.filechoosegroupbox.Controls.Add(this.browsebutton);
            this.filechoosegroupbox.Controls.Add(this.textBox1);
            this.filechoosegroupbox.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
            this.filechoosegroupbox.FontColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
            this.filechoosegroupbox.Location = new System.Drawing.Point(12, 10);
            this.filechoosegroupbox.Name = "filechoosegroupbox";
            this.filechoosegroupbox.ShadowColor = System.Drawing.Color.Gold;
            this.filechoosegroupbox.Size = new System.Drawing.Size(279, 125);
            this.filechoosegroupbox.TabIndex = 7;
            this.filechoosegroupbox.TabStop = false;
            this.filechoosegroupbox.Text = "Choose the mp3 file";
            // 
            // browsebutton
            // 
            this.browsebutton.BackColor = System.Drawing.Color.Transparent;
            this.browsebutton.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
            this.browsebutton.Location = new System.Drawing.Point(88, 74);
            this.browsebutton.Name = "browsebutton";
            this.browsebutton.Size = new System.Drawing.Size(102, 28);
            this.browsebutton.TabIndex = 2;
            this.browsebutton.Text = "browse";
            this.browsebutton.UseVisualStyleBackColor = false;
            this.browsebutton.Click += new System.EventHandler(this.button1_Click);
            // 
            // iconchoosegroupbox
            // 
            this.iconchoosegroupbox.BorderWidth = 6;
            this.iconchoosegroupbox.ColorScheme = TestSample.EnmColorScheme.Green;
            this.iconchoosegroupbox.Controls.Add(this.skinButton2);
            this.iconchoosegroupbox.Controls.Add(this.pictureBox1);
            this.iconchoosegroupbox.Controls.Add(this.skinRadioButton2);
            this.iconchoosegroupbox.Controls.Add(this.skinRadioButton1);
            this.iconchoosegroupbox.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
            this.iconchoosegroupbox.FontColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
            this.iconchoosegroupbox.Location = new System.Drawing.Point(324, 10);
            this.iconchoosegroupbox.Name = "iconchoosegroupbox";
            this.iconchoosegroupbox.ShadowColor = System.Drawing.Color.Gold;
            this.iconchoosegroupbox.Size = new System.Drawing.Size(279, 125);
            this.iconchoosegroupbox.TabIndex = 8;
            this.iconchoosegroupbox.TabStop = false;
            this.iconchoosegroupbox.Text = "Choose icon for executable file";
            // 
            // skinButton2
            // 
            this.skinButton2.BackColor = System.Drawing.Color.Transparent;
            this.skinButton2.Enabled = false;
            this.skinButton2.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
            this.skinButton2.Location = new System.Drawing.Point(119, 83);
            this.skinButton2.Name = "skinButton2";
            this.skinButton2.Size = new System.Drawing.Size(84, 26);
            this.skinButton2.TabIndex = 10;
            this.skinButton2.Text = "browse";
            this.skinButton2.UseVisualStyleBackColor = false;
            this.skinButton2.Click += new System.EventHandler(this.skinButton2_Click);
            // 
            // pictureBox1
            // 
            this.pictureBox1.BackColor = System.Drawing.Color.Transparent;
            this.pictureBox1.ImageLocation = "icon.ico";
            this.pictureBox1.Location = new System.Drawing.Point(130, 35);
            this.pictureBox1.Name = "pictureBox1";
            this.pictureBox1.Size = new System.Drawing.Size(64, 42);
            this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
            this.pictureBox1.TabIndex = 2;
            this.pictureBox1.TabStop = false;
            // 
            // skinRadioButton2
            // 
            this.skinRadioButton2.AutoSize = true;
            this.skinRadioButton2.BackColor = System.Drawing.Color.Transparent;
            this.skinRadioButton2.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
            this.skinRadioButton2.Location = new System.Drawing.Point(18, 82);
            this.skinRadioButton2.Name = "skinRadioButton2";
            this.skinRadioButton2.Size = new System.Drawing.Size(60, 17);
            this.skinRadioButton2.TabIndex = 1;
            this.skinRadioButton2.TabStop = true;
            this.skinRadioButton2.Text = "Custom";
            this.skinRadioButton2.UseVisualStyleBackColor = true;
            // 
            // skinRadioButton1
            // 
            this.skinRadioButton1.AutoSize = true;
            this.skinRadioButton1.BackColor = System.Drawing.Color.Transparent;
            this.skinRadioButton1.Checked = true;
            this.skinRadioButton1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
            this.skinRadioButton1.Location = new System.Drawing.Point(18, 38);
            this.skinRadioButton1.Name = "skinRadioButton1";
            this.skinRadioButton1.Size = new System.Drawing.Size(59, 17);
            this.skinRadioButton1.TabIndex = 0;
            this.skinRadioButton1.TabStop = true;
            this.skinRadioButton1.Text = "Default";
            this.skinRadioButton1.UseVisualStyleBackColor = true;
            this.skinRadioButton1.CheckedChanged += new System.EventHandler(this.skinRadioButton1_CheckedChanged);
            // 
            // skinButton1
            // 
            this.skinButton1.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Millimeter, ((byte)(204)));
            this.skinButton1.ForeColor = System.Drawing.Color.DarkRed;
            this.skinButton1.Location = new System.Drawing.Point(166, 156);
            this.skinButton1.Name = "skinButton1";
            this.skinButton1.Size = new System.Drawing.Size(283, 66);
            this.skinButton1.TabIndex = 9;
            this.skinButton1.Text = "Generate!";
            this.skinButton1.UseVisualStyleBackColor = true;
            this.skinButton1.Click += new System.EventHandler(this.button2_Click);
            // 
            // backgroundWorker1
            // 
            this.backgroundWorker1.DoWork += new System.ComponentModel.DoWorkEventHandler(this.backgroundWorker1_DoWork);
            this.backgroundWorker1.RunWorkerCompleted += new System.ComponentModel.RunWorkerCompletedEventHandler(this.backgroundWorker1_RunWorkerCompleted);
            // 
            // linkLabel1
            // 
            this.linkLabel1.AutoSize = true;
            this.linkLabel1.BackColor = System.Drawing.Color.Transparent;
            this.linkLabel1.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
            this.linkLabel1.Location = new System.Drawing.Point(542, 238);
            this.linkLabel1.Name = "linkLabel1";
            this.linkLabel1.Size = new System.Drawing.Size(38, 15);
            this.linkLabel1.TabIndex = 10;
            this.linkLabel1.TabStop = true;
            this.linkLabel1.Text = "About";
            this.linkLabel1.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel1_LinkClicked);
            // 
            // Form1
            // 
            this.AcceptButton = this.skinButton2;
            this.AllowDrop = true;
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.BackColor = System.Drawing.Color.DarkGoldenrod;
            this.ClientSize = new System.Drawing.Size(614, 262);
            this.Controls.Add(this.linkLabel1);
            this.Controls.Add(this.skinButton1);
            this.Controls.Add(this.iconchoosegroupbox);
            this.Controls.Add(this.filechoosegroupbox);
            this.Controls.Add(this.label2);
            this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
            this.MaximizeBox = false;
            this.MaximumSize = new System.Drawing.Size(622, 296);
            this.MinimumSize = new System.Drawing.Size(622, 296);
            this.Name = "Form1";
            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
            this.Text = "MP3 to exe convertor";
            this.Shown += new System.EventHandler(this.Form1_Shown);
            this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.Form1_FormClosing);
            this.Load += new System.EventHandler(this.Form1_Load);
            this.filechoosegroupbox.ResumeLayout(false);
            this.filechoosegroupbox.PerformLayout();
            this.iconchoosegroupbox.ResumeLayout(false);
            this.iconchoosegroupbox.PerformLayout();
            ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
            this.ResumeLayout(false);
            this.PerformLayout();

        }

        #endregion

        private System.Windows.Forms.TextBox textBox1;
        private System.Windows.Forms.Label label2;
        private TestSample.GroupBoxWithChamfer filechoosegroupbox;
        private TestSample.GroupBoxWithChamfer iconchoosegroupbox;
        private DotNetSkin.SkinControls.SkinButton browsebutton;
        private System.Windows.Forms.PictureBox pictureBox1;
        private DotNetSkin.SkinControls.SkinRadioButton skinRadioButton2;
        private DotNetSkin.SkinControls.SkinRadioButton skinRadioButton1;
        private DotNetSkin.SkinControls.SkinButton skinButton1;
        private DotNetSkin.SkinControls.SkinButton skinButton2;
        private System.ComponentModel.BackgroundWorker backgroundWorker1;
        private System.Windows.Forms.LinkLabel linkLabel1;
    }
}

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
Software Developer
Georgia Georgia
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions