usingSystem;usingSystem.Drawing;usingSystem.Collections;usingSystem.ComponentModel;usingSystem.Windows.Forms;usingSystem.Data;usingSystem.IO;namespacePic2Html{///<su
mmary>///SummarydescriptionforForm1.///</summary>publicclassfrmMain:System.Windows.Forms.Form{privateSystem.Windows.Forms.GroupBoxgbxBox;privateSystem.Windows.Forms.
ButtoncmdBrowseTxTFile;privateSystem.Windows.Forms.TextBoxtxtTxtFile;privateSystem.Windows.Forms.ButtoncmdFix;privateSystem.Windows.Forms.GroupBoxgroupBox1;privateSy
stem.Windows.Forms.ButtoncmdBrowsePicFile;privateSystem.Windows.Forms.TextBoxtxtPicFile;privateSystem.Windows.Forms.ButtoncmdBrowseHtmFile;privateSystem.Windows.Form
s.TextBoxtxtHtmFile;privateSystem.Windows.Forms.TextBoxtxtWidth;privateSystem.Windows.Forms.TextBoxtxtHeight;privateSystem.Windows.Forms.Labellabel1;privateSystem.Wi
ndows.Forms.Labellabel2;privateSystem.Windows.Forms.Labellabel3;privateSystem.Windows.Forms.Labellabel4;///<summary>///Requireddesignervariable.///</summary>privateS
ystem.ComponentModel.Containercomponents=null;publicfrmMain(){////RequiredforWindowsFormDesignersupport//InitializeComponent();////TODO:AddanyconstructorcodeafterIni
tializeComponentcall//}///<summary>///Cleanupanyresourcesbeingused.///</summary>protectedoverridevoidDispose(booldisposing){if(disposing){if(components!=null){compon
ents.Dispose();}}base.Dispose(disposing);}#regionWindowsFormDesignergeneratedcode///<summary>///RequiredmethodforDesignersupport-donotmodify///thecontentsofthismetho
dwiththecodeeditor.///</summary>privatevoidInitializeComponent(){this.gbxBox=newSystem.Windows.Forms.GroupBox();this.label2=newSystem.Windows.Forms.Label();this.labe
l1=newSystem.Windows.Forms.Label();this.cmdBrowsePicFile=newSystem.Windows.Forms.Button();this.txtPicFile=newSystem.Windows.Forms.TextBox();this.cmdBrowseTxTFile=new
System.Windows.Forms.Button();this.txtTxtFile=newSystem.Windows.Forms.TextBox();this.cmdFix=newSystem.Windows.Forms.Button();this.groupBox1=newSystem.Windows.Forms.G
roupBox();this.txtHeight=newSystem.Windows.Forms.TextBox();this.txtWidth=newSystem.Windows.Forms.TextBox();this.cmdBrowseHtmFile=newSystem.Windows.Forms.Button();thi
s.txtHtmFile=newSystem.Windows.Forms.TextBox();this.label3=newSystem.Windows.Forms.Label();this.label4=newSystem.Windows.Forms.Label();this.gbxBox.SuspendLayout();th
is.groupBox1.SuspendLayout();this.SuspendLayout();////gbxBox//this.gbxBox.Controls.AddRange(newSystem.Windows.Forms.Control[]{this.label2,this.label1,this.cmdBrowseP
icFile,this.txtPicFile,this.cmdBrowseTxTFile,this.txtTxtFile});this.gbxBox.Location=newSystem.Drawing.Point(8,8);this.gbxBox.Name="gbxBox";this.gbxBox.Size=newSystem
.Drawing.Size(872,80);this.gbxBox.TabIndex=7;this.gbxBox.TabStop=false;this.gbxBox.Text="InputFiles";////label2//this.label2.Location=newSystem.Drawing.Point(8,51);t
his.label2.Name="label2";this.label2.Size=newSystem.Drawing.Size(80,16);this.label2.TabIndex=7;this.label2.Text="Picture";////label1//this.label1.Location=newSystem.
Drawing.Point(8,19);this.label1.Name="label1";this.label1.Size=newSystem.Drawing.Size(80,16);this.label1.TabIndex=6;this.label1.Text="Textfile";////cmdBrowsePicFile/
/this.cmdBrowsePicFile.Location=newSystem.Drawing.Point(744,48);this.cmdBrowsePicFile.Name="cmdBrowsePicFile";this.cmdBrowsePicFile.Size=newSystem.Drawing.Size(120,2
4);this.cmdBrowsePicFile.TabIndex=5;this.cmdBrowsePicFile.Text="Browse";this.cmdBrowsePicFile.Click+=newSystem.EventHandler(this.cmdBrowsePicFile_Click);////txtPicFi
le//this.txtPicFile.Location=newSystem.Drawing.Point(96,48);this.txtPicFile.Name="txtPicFile";this.txtPicFile.Size=newSystem.Drawing.Size(640,20);this.txtPicFile.Tab
Index=4;this.txtPicFile.Text="";////cmdBrowseTxTFile//this.cmdBrowseTxTFile.Location=newSystem.Drawing.Point(744,16);this.cmdBrowseTxTFile.Name="cmdBrowseTxTFile";th
is.cmdBrowseTxTFile.Size=newSystem.Drawing.Size(120,24);this.cmdBrowseTxTFile.TabIndex=3;this.cmdBrowseTxTFile.Text="Browse";this.cmdBrowseTxTFile.Click+=newSystem.E
ventHandler(this.cmdBrowseTxTFile_Click);////txtTxtFile//this.txtTxtFile.Location=newSystem.Drawing.Point(96,16);this.txtTxtFile.Name="txtTxtFile";this.txtTxtFile.Si
ze=newSystem.Drawing.Size(640,20);this.txtTxtFile.TabIndex=1;this.txtTxtFile.Text="";////cmdFix//this.cmdFix.Location=newSystem.Drawing.Point(752,184);this.cmdFix.Na
me="cmdFix";this.cmdFix.Size=newSystem.Drawing.Size(120,24);this.cmdFix.TabIndex=6;this.cmdFix.Text="Fix!";this.cmdFix.Click+=newSystem.EventHandler(this.cmdFix_Clic
k);////groupBox1//this.groupBox1.Controls.AddRange(newSystem.Windows.Forms.Control[]{this.label4,this.label3,this.txtHeight,this.txtWidth,this.cmdBrowseHtmFile,this.
txtHtmFile});this.groupBox1.Location=newSystem.Drawing.Point(8,96);this.groupBox1.Name="groupBox1";this.groupBox1.Size=newSystem.Drawing.Size(872,80);this.groupBox1.
TabIndex=8;this.groupBox1.TabStop=false;this.groupBox1.Text="Output";////txtHeight//this.txtHeight.Location=newSystem.Drawing.Point(392,48);this.txtHeight.MaxLength=
3;this.txtHeight.Name="txtHeight";this.txtHeight.Size=newSystem.Drawing.Size(88,20);this.txtHeight.TabIndex=5;this.txtHeight.Text="";////txtWidth//this.txtWidth.Loca
tion=newSystem.Drawing.Point(96,48);this.txtWidth.MaxLength=3;this.txtWidth.Name="txtWidth";this.txtWidth.Size=newSystem.Drawing.Size(88,20);this.txtWidth.TabIndex=4
;this.txtWidth.Text="";////cmdBrowseHtmFile//this.cmdBrowseHtmFile.Location=newSystem.Drawing.Point(744,16);this.cmdBrowseHtmFile.Name="cmdBrowseHtmFile";this.cmdBro
wseHtmFile.Size=newSystem.Drawing.Size(120,24);this.cmdBrowseHtmFile.TabIndex=3;this.cmdBrowseHtmFile.Text="Browse";this.cmdBrowseHtmFile.Click+=newSystem.EventHandl
er(this.cmdBrowseHtmFile_Click);////txtHtmFile//this.txtHtmFile.Location=newSystem.Drawing.Point(96,16);this.txtHtmFile.Name="txtHtmFile";this.txtHtmFile.Size=newSys