using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;

namespace Project1
{
	/// <summary>
	/// 
	/// </summary>
	public class Form1 : System.Windows.Forms.Form
	{
		public System.Windows.Forms.Button Command3;
		public System.Windows.Forms.RadioButton Option2;
		public System.Windows.Forms.RadioButton Option1;
		public System.Windows.Forms.Button Command2;
		public System.Windows.Forms.Button Command1;
		public System.Windows.Forms.TextBox Text6;
		public System.Windows.Forms.TextBox Text5;
		public System.Windows.Forms.TextBox Text4;
		public System.Windows.Forms.TextBox Text3;
		public System.Windows.Forms.TextBox Text2;
		public System.Windows.Forms.TextBox Text1;
		public System.Windows.Forms.Label Label8;
		public System.Windows.Forms.Label Label14;
		public System.Windows.Forms.Label Label13;
		public System.Windows.Forms.Label Label12;
		public System.Windows.Forms.Label Label11;
		public System.Windows.Forms.Label Label10;
		public System.Windows.Forms.Label Label9;
		public System.Windows.Forms.Label Label7;
		public System.Windows.Forms.Label Label6;
		public System.Windows.Forms.Label Label5;
		public System.Windows.Forms.Label Label4;
		public System.Windows.Forms.Label Label3;
		public System.Windows.Forms.Label Label2;
		public System.Windows.Forms.Label Label1;
		private AxIMAGEKIT7Lib.AxImageKit ImageKit1;
		/// <summary>
		/// 
		/// </summary>
		private System.ComponentModel.Container components = null;
		public System.Windows.Forms.TextBox Text7;

		private Form2 ProgressForm;


		public Form1()
		{
			//
			//
			//
			InitializeComponent();

			//
			// 
			//
		}

		/// <summary>
		///
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
				if (components != null) 
				{
					components.Dispose();
				}
			}
			base.Dispose( disposing );
		}

		#region Windows Form Designer generated code
		/// <summary>
		/// デザイナ サポートに必要なメソッドです。このメソッドの内容を
		/// コード エディタで変更しないでください。
		/// </summary>
		private void InitializeComponent()
		{
			System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(Form1));
			this.Command3 = new System.Windows.Forms.Button();
			this.Option2 = new System.Windows.Forms.RadioButton();
			this.Option1 = new System.Windows.Forms.RadioButton();
			this.Command2 = new System.Windows.Forms.Button();
			this.Command1 = new System.Windows.Forms.Button();
			this.Text6 = new System.Windows.Forms.TextBox();
			this.Text5 = new System.Windows.Forms.TextBox();
			this.Text4 = new System.Windows.Forms.TextBox();
			this.Text3 = new System.Windows.Forms.TextBox();
			this.Text2 = new System.Windows.Forms.TextBox();
			this.Text1 = new System.Windows.Forms.TextBox();
			this.Label8 = new System.Windows.Forms.Label();
			this.Label14 = new System.Windows.Forms.Label();
			this.Label13 = new System.Windows.Forms.Label();
			this.Label12 = new System.Windows.Forms.Label();
			this.Label11 = new System.Windows.Forms.Label();
			this.Label10 = new System.Windows.Forms.Label();
			this.Label9 = new System.Windows.Forms.Label();
			this.Label7 = new System.Windows.Forms.Label();
			this.Label6 = new System.Windows.Forms.Label();
			this.Label5 = new System.Windows.Forms.Label();
			this.Label4 = new System.Windows.Forms.Label();
			this.Label3 = new System.Windows.Forms.Label();
			this.Label2 = new System.Windows.Forms.Label();
			this.Label1 = new System.Windows.Forms.Label();
			this.ImageKit1 = new AxIMAGEKIT7Lib.AxImageKit();
			this.Text7 = new System.Windows.Forms.TextBox();
			((System.ComponentModel.ISupportInitialize)(this.ImageKit1)).BeginInit();
			this.SuspendLayout();
			// 
			// Command3
			// 
			this.Command3.BackColor = System.Drawing.SystemColors.Control;
			this.Command3.Cursor = System.Windows.Forms.Cursors.Default;
			this.Command3.ForeColor = System.Drawing.SystemColors.ControlText;
			this.Command3.Location = new System.Drawing.Point(432, 316);
			this.Command3.Name = "Command3";
			this.Command3.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Command3.Size = new System.Drawing.Size(89, 35);
			this.Command3.TabIndex = 43;
			this.Command3.Text = "End";
			this.Command3.Click += new System.EventHandler(this.Command3_Click);
			// 
			// Option2
			// 
			this.Option2.BackColor = System.Drawing.SystemColors.Control;
			this.Option2.Cursor = System.Windows.Forms.Cursors.Default;
			this.Option2.ForeColor = System.Drawing.SystemColors.ControlText;
			this.Option2.Location = new System.Drawing.Point(128, 290);
			this.Option2.Name = "Option2";
			this.Option2.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Option2.Size = new System.Drawing.Size(57, 19);
			this.Option2.TabIndex = 42;
			this.Option2.TabStop = true;
			this.Option2.Text = "FTP";
			// 
			// Option1
			// 
			this.Option1.BackColor = System.Drawing.SystemColors.Control;
			this.Option1.Checked = true;
			this.Option1.Cursor = System.Windows.Forms.Cursors.Default;
			this.Option1.ForeColor = System.Drawing.SystemColors.ControlText;
			this.Option1.Location = new System.Drawing.Point(48, 290);
			this.Option1.Name = "Option1";
			this.Option1.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Option1.Size = new System.Drawing.Size(57, 19);
			this.Option1.TabIndex = 41;
			this.Option1.TabStop = true;
			this.Option1.Text = "HTTP";
			// 
			// Command2
			// 
			this.Command2.BackColor = System.Drawing.SystemColors.Control;
			this.Command2.Cursor = System.Windows.Forms.Cursors.Default;
			this.Command2.ForeColor = System.Drawing.SystemColors.ControlText;
			this.Command2.Location = new System.Drawing.Point(328, 316);
			this.Command2.Name = "Command2";
			this.Command2.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Command2.Size = new System.Drawing.Size(89, 35);
			this.Command2.TabIndex = 40;
			this.Command2.Text = "Get";
			this.Command2.Click += new System.EventHandler(this.Command2_Click);
			// 
			// Command1
			// 
			this.Command1.BackColor = System.Drawing.SystemColors.Control;
			this.Command1.Cursor = System.Windows.Forms.Cursors.Default;
			this.Command1.ForeColor = System.Drawing.SystemColors.ControlText;
			this.Command1.Location = new System.Drawing.Point(224, 316);
			this.Command1.Name = "Command1";
			this.Command1.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Command1.Size = new System.Drawing.Size(89, 35);
			this.Command1.TabIndex = 39;
			this.Command1.Text = "Put";
			this.Command1.Click += new System.EventHandler(this.Command1_Click);
			// 
			// Text6
			// 
			this.Text6.AcceptsReturn = true;
			this.Text6.AutoSize = false;
			this.Text6.BackColor = System.Drawing.SystemColors.Window;
			this.Text6.Cursor = System.Windows.Forms.Cursors.IBeam;
			this.Text6.ForeColor = System.Drawing.SystemColors.WindowText;
			this.Text6.Location = new System.Drawing.Point(104, 247);
			this.Text6.MaxLength = 0;
			this.Text6.Name = "Text6";
			this.Text6.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Text6.Size = new System.Drawing.Size(161, 20);
			this.Text6.TabIndex = 38;
			this.Text6.Text = "";
			// 
			// Text5
			// 
			this.Text5.AcceptsReturn = true;
			this.Text5.AutoSize = false;
			this.Text5.BackColor = System.Drawing.SystemColors.Window;
			this.Text5.Cursor = System.Windows.Forms.Cursors.IBeam;
			this.Text5.ForeColor = System.Drawing.SystemColors.WindowText;
			this.Text5.Location = new System.Drawing.Point(104, 212);
			this.Text5.MaxLength = 0;
			this.Text5.Name = "Text5";
			this.Text5.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Text5.Size = new System.Drawing.Size(49, 20);
			this.Text5.TabIndex = 37;
			this.Text5.Text = "10";
			// 
			// Text4
			// 
			this.Text4.AcceptsReturn = true;
			this.Text4.AutoSize = false;
			this.Text4.BackColor = System.Drawing.SystemColors.Window;
			this.Text4.Cursor = System.Windows.Forms.Cursors.IBeam;
			this.Text4.ForeColor = System.Drawing.SystemColors.WindowText;
			this.Text4.Location = new System.Drawing.Point(104, 178);
			this.Text4.MaxLength = 0;
			this.Text4.Name = "Text4";
			this.Text4.PasswordChar = '*';
			this.Text4.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Text4.Size = new System.Drawing.Size(161, 19);
			this.Text4.TabIndex = 34;
			this.Text4.Text = "";
			// 
			// Text3
			// 
			this.Text3.AcceptsReturn = true;
			this.Text3.AutoSize = false;
			this.Text3.BackColor = System.Drawing.SystemColors.Window;
			this.Text3.Cursor = System.Windows.Forms.Cursors.IBeam;
			this.Text3.ForeColor = System.Drawing.SystemColors.WindowText;
			this.Text3.Location = new System.Drawing.Point(104, 143);
			this.Text3.MaxLength = 0;
			this.Text3.Name = "Text3";
			this.Text3.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Text3.Size = new System.Drawing.Size(161, 20);
			this.Text3.TabIndex = 33;
			this.Text3.Text = "";
			// 
			// Text2
			// 
			this.Text2.AcceptsReturn = true;
			this.Text2.AutoSize = false;
			this.Text2.BackColor = System.Drawing.SystemColors.Window;
			this.Text2.Cursor = System.Windows.Forms.Cursors.IBeam;
			this.Text2.ForeColor = System.Drawing.SystemColors.WindowText;
			this.Text2.Location = new System.Drawing.Point(104, 108);
			this.Text2.MaxLength = 0;
			this.Text2.Name = "Text2";
			this.Text2.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Text2.Size = new System.Drawing.Size(161, 20);
			this.Text2.TabIndex = 32;
			this.Text2.Text = "";
			// 
			// Text1
			// 
			this.Text1.AcceptsReturn = true;
			this.Text1.AutoSize = false;
			this.Text1.BackColor = System.Drawing.SystemColors.Window;
			this.Text1.Cursor = System.Windows.Forms.Cursors.IBeam;
			this.Text1.ForeColor = System.Drawing.SystemColors.WindowText;
			this.Text1.Location = new System.Drawing.Point(104, 74);
			this.Text1.MaxLength = 0;
			this.Text1.Name = "Text1";
			this.Text1.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Text1.Size = new System.Drawing.Size(161, 19);
			this.Text1.TabIndex = 27;
			this.Text1.Text = "";
			// 
			// Label8
			// 
			this.Label8.BackColor = System.Drawing.SystemColors.Control;
			this.Label8.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
			this.Label8.Cursor = System.Windows.Forms.Cursors.Default;
			this.Label8.Font = new System.Drawing.Font("Microsoft Sans Serif", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(128)));
			this.Label8.ForeColor = System.Drawing.SystemColors.ControlText;
			this.Label8.Location = new System.Drawing.Point(308, 13);
			this.Label8.Name = "Label8";
			this.Label8.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Label8.Size = new System.Drawing.Size(232, 44);
			this.Label8.TabIndex = 51;
			this.Label8.Text = "(example)    http://server/photos/image.jpg";
			this.Label8.TextAlign = System.Drawing.ContentAlignment.TopCenter;
			// 
			// Label14
			// 
			this.Label14.BackColor = System.Drawing.SystemColors.Control;
			this.Label14.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
			this.Label14.Cursor = System.Windows.Forms.Cursors.Default;
			this.Label14.ForeColor = System.Drawing.SystemColors.WindowText;
			this.Label14.Location = new System.Drawing.Point(296, 247);
			this.Label14.Name = "Label14";
			this.Label14.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Label14.Size = new System.Drawing.Size(161, 18);
			this.Label14.TabIndex = 50;
			this.Label14.Text = "c:\\abc.jpg";
			// 
			// Label13
			// 
			this.Label13.BackColor = System.Drawing.SystemColors.Control;
			this.Label13.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
			this.Label13.Cursor = System.Windows.Forms.Cursors.Default;
			this.Label13.ForeColor = System.Drawing.SystemColors.WindowText;
			this.Label13.Location = new System.Drawing.Point(296, 212);
			this.Label13.Name = "Label13";
			this.Label13.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Label13.Size = new System.Drawing.Size(65, 19);
			this.Label13.TabIndex = 49;
			this.Label13.Text = "10";
			// 
			// Label12
			// 
			this.Label12.BackColor = System.Drawing.SystemColors.Control;
			this.Label12.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
			this.Label12.Cursor = System.Windows.Forms.Cursors.Default;
			this.Label12.ForeColor = System.Drawing.SystemColors.WindowText;
			this.Label12.Location = new System.Drawing.Point(296, 178);
			this.Label12.Name = "Label12";
			this.Label12.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Label12.Size = new System.Drawing.Size(161, 18);
			this.Label12.TabIndex = 48;
			// 
			// Label11
			// 
			this.Label11.BackColor = System.Drawing.SystemColors.Control;
			this.Label11.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
			this.Label11.Cursor = System.Windows.Forms.Cursors.Default;
			this.Label11.ForeColor = System.Drawing.SystemColors.WindowText;
			this.Label11.Location = new System.Drawing.Point(296, 143);
			this.Label11.Name = "Label11";
			this.Label11.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Label11.Size = new System.Drawing.Size(161, 18);
			this.Label11.TabIndex = 47;
			// 
			// Label10
			// 
			this.Label10.BackColor = System.Drawing.SystemColors.Control;
			this.Label10.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
			this.Label10.Cursor = System.Windows.Forms.Cursors.Default;
			this.Label10.ForeColor = System.Drawing.SystemColors.WindowText;
			this.Label10.Location = new System.Drawing.Point(296, 108);
			this.Label10.Name = "Label10";
			this.Label10.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Label10.Size = new System.Drawing.Size(161, 19);
			this.Label10.TabIndex = 46;
			this.Label10.Text = "photos/image.jpg";
			// 
			// Label9
			// 
			this.Label9.BackColor = System.Drawing.SystemColors.Control;
			this.Label9.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
			this.Label9.Cursor = System.Windows.Forms.Cursors.Default;
			this.Label9.ForeColor = System.Drawing.SystemColors.WindowText;
			this.Label9.Location = new System.Drawing.Point(296, 74);
			this.Label9.Name = "Label9";
			this.Label9.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Label9.Size = new System.Drawing.Size(161, 18);
			this.Label9.TabIndex = 45;
			this.Label9.Text = "server";
			// 
			// Label7
			// 
			this.Label7.AutoSize = true;
			this.Label7.BackColor = System.Drawing.SystemColors.Control;
			this.Label7.Cursor = System.Windows.Forms.Cursors.Default;
			this.Label7.ForeColor = System.Drawing.SystemColors.ControlText;
			this.Label7.Location = new System.Drawing.Point(160, 221);
			this.Label7.Name = "Label7";
			this.Label7.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Label7.Size = new System.Drawing.Size(14, 16);
			this.Label7.TabIndex = 44;
			this.Label7.Text = "%";
			// 
			// Label6
			// 
			this.Label6.AutoSize = true;
			this.Label6.BackColor = System.Drawing.SystemColors.Control;
			this.Label6.Cursor = System.Windows.Forms.Cursors.Default;
			this.Label6.ForeColor = System.Drawing.SystemColors.ControlText;
			this.Label6.Location = new System.Drawing.Point(8, 108);
			this.Label6.Name = "Label6";
			this.Label6.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Label6.Size = new System.Drawing.Size(65, 16);
			this.Label6.TabIndex = 36;
			this.Label6.Text = "Remote File";
			// 
			// Label5
			// 
			this.Label5.AutoSize = true;
			this.Label5.BackColor = System.Drawing.SystemColors.Control;
			this.Label5.Cursor = System.Windows.Forms.Cursors.Default;
			this.Label5.ForeColor = System.Drawing.SystemColors.ControlText;
			this.Label5.Location = new System.Drawing.Point(8, 247);
			this.Label5.Name = "Label5";
			this.Label5.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Label5.Size = new System.Drawing.Size(53, 16);
			this.Label5.TabIndex = 35;
			this.Label5.Text = "Local File";
			// 
			// Label4
			// 
			this.Label4.AutoSize = true;
			this.Label4.BackColor = System.Drawing.SystemColors.Control;
			this.Label4.Cursor = System.Windows.Forms.Cursors.Default;
			this.Label4.ForeColor = System.Drawing.SystemColors.ControlText;
			this.Label4.Location = new System.Drawing.Point(8, 212);
			this.Label4.Name = "Label4";
			this.Label4.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Label4.Size = new System.Drawing.Size(75, 16);
			this.Label4.TabIndex = 31;
			this.Label4.Text = "Transfer Units";
			// 
			// Label3
			// 
			this.Label3.AutoSize = true;
			this.Label3.BackColor = System.Drawing.SystemColors.Control;
			this.Label3.Cursor = System.Windows.Forms.Cursors.Default;
			this.Label3.ForeColor = System.Drawing.SystemColors.ControlText;
			this.Label3.Location = new System.Drawing.Point(12, 178);
			this.Label3.Name = "Label3";
			this.Label3.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Label3.Size = new System.Drawing.Size(54, 16);
			this.Label3.TabIndex = 30;
			this.Label3.Text = "Password";
			// 
			// Label2
			// 
			this.Label2.AutoSize = true;
			this.Label2.BackColor = System.Drawing.SystemColors.Control;
			this.Label2.Cursor = System.Windows.Forms.Cursors.Default;
			this.Label2.ForeColor = System.Drawing.SystemColors.ControlText;
			this.Label2.Location = new System.Drawing.Point(8, 143);
			this.Label2.Name = "Label2";
			this.Label2.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Label2.Size = new System.Drawing.Size(61, 16);
			this.Label2.TabIndex = 29;
			this.Label2.Text = "User Name";
			// 
			// Label1
			// 
			this.Label1.AutoSize = true;
			this.Label1.BackColor = System.Drawing.SystemColors.Control;
			this.Label1.Cursor = System.Windows.Forms.Cursors.Default;
			this.Label1.ForeColor = System.Drawing.SystemColors.ControlText;
			this.Label1.Location = new System.Drawing.Point(8, 82);
			this.Label1.Name = "Label1";
			this.Label1.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Label1.Size = new System.Drawing.Size(71, 16);
			this.Label1.TabIndex = 28;
			this.Label1.Text = "Server Name";
			// 
			// ImageKit1
			// 
			this.ImageKit1.Location = new System.Drawing.Point(488, 247);
			this.ImageKit1.Name = "ImageKit1";
			this.ImageKit1.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("ImageKit1.OcxState")));
			this.ImageKit1.Size = new System.Drawing.Size(40, 39);
			this.ImageKit1.TabIndex = 52;
			this.ImageKit1.Visible = false;
			this.ImageKit1.Progress += new AxIMAGEKIT7Lib._IImageKitEvents_ProgressEventHandler(this.ImageKit1_Progress);
			// 
			// Text7
			// 
			this.Text7.AcceptsReturn = true;
			this.Text7.AutoSize = false;
			this.Text7.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(192)));
			this.Text7.Cursor = System.Windows.Forms.Cursors.IBeam;
			this.Text7.Font = new System.Drawing.Font("Arial", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
			this.Text7.ForeColor = System.Drawing.Color.FromArgb(((System.Byte)(192)), ((System.Byte)(0)), ((System.Byte)(0)));
			this.Text7.Location = new System.Drawing.Point(4, 8);
			this.Text7.MaxLength = 0;
			this.Text7.Multiline = true;
			this.Text7.Name = "Text7";
			this.Text7.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Text7.Size = new System.Drawing.Size(304, 49);
			this.Text7.TabIndex = 53;
			this.Text7.Text = "The ImageKit7 supports HTTP, HTTPS, and FTP file transfer protocol. This sample i" +
				"llustrates the how to transfer files to or retrieve files from an HTTP or FTP se" +
				"rver.";
			// 
			// Form1
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
			this.ClientSize = new System.Drawing.Size(552, 365);
			this.Controls.Add(this.Text7);
			this.Controls.Add(this.ImageKit1);
			this.Controls.Add(this.Command3);
			this.Controls.Add(this.Option2);
			this.Controls.Add(this.Option1);
			this.Controls.Add(this.Text6);
			this.Controls.Add(this.Text5);
			this.Controls.Add(this.Text4);
			this.Controls.Add(this.Text3);
			this.Controls.Add(this.Text2);
			this.Controls.Add(this.Text1);
			this.Controls.Add(this.Label7);
			this.Controls.Add(this.Label6);
			this.Controls.Add(this.Label5);
			this.Controls.Add(this.Label4);
			this.Controls.Add(this.Label3);
			this.Controls.Add(this.Label2);
			this.Controls.Add(this.Label1);
			this.Controls.Add(this.Command2);
			this.Controls.Add(this.Command1);
			this.Controls.Add(this.Label8);
			this.Controls.Add(this.Label14);
			this.Controls.Add(this.Label13);
			this.Controls.Add(this.Label12);
			this.Controls.Add(this.Label11);
			this.Controls.Add(this.Label10);
			this.Controls.Add(this.Label9);
			this.Name = "Form1";
			this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
			this.Text = "File Transfer";
			this.Load += new System.EventHandler(this.Form1_Load);
			this.Closed += new System.EventHandler(this.Form1_Closed);
			((System.ComponentModel.ISupportInitialize)(this.ImageKit1)).EndInit();
			this.ResumeLayout(false);

		}
		#endregion

		/// <summary>
		///
		/// </summary>
		[STAThread]
		static void Main() 
		{
			Application.Run(new Form1());
		}

		private void Form1_Load(object sender, System.EventArgs e)
		{
			ProgressForm = new Form2();
		}

		//put
		private void Command1_Click(object sender, System.EventArgs e)
		{
			bool Ret;
			int TransPercent = 100;

			ImageKit1.File.FileName = Text6.Text;
		
			ProgressForm.CancelFlag = false;
			ProgressForm.Show();

			if (Text5.Text.Length > 0)
				TransPercent = Convert.ToInt32(Text5.Text);

			if (Option1.Checked == true)
				Ret = ImageKit1.File.HTTPPutFile(Text1.Text, "", 0, Text2.Text, Text3.Text, Text4.Text, TransPercent);
			else
				Ret = ImageKit1.File.FTPPutFile(Text1.Text, "", 0, true, Text2.Text, Text3.Text, Text4.Text, TransPercent);
		
			ProgressForm.Hide();
		}

		//get
		private void Command2_Click(object sender, System.EventArgs e)
		{
			bool Ret;
			int TransPercent = 100;

			ImageKit1.File.FileName = Text6.Text;
		
			ProgressForm.CancelFlag = false;
			ProgressForm.Show();

			if (Text5.Text.Length > 0)
				TransPercent = Convert.ToInt32(Text5.Text);

			if (Option1.Checked == true)
				Ret = ImageKit1.File.HTTPGetFile(Text1.Text, "", 0, Text2.Text, Text3.Text, Text4.Text, TransPercent);
			else
				Ret = ImageKit1.File.FTPGetFile(Text1.Text, "", 0, true, Text2.Text, Text3.Text, Text4.Text, TransPercent);

			ProgressForm.Hide();
		}

		private void ImageKit1_Progress(object sender, AxIMAGEKIT7Lib._IImageKitEvents_ProgressEvent e)
		{
			ProgressForm.progressBar1.Value = e.percent;

			if (ProgressForm.CancelFlag == true)
				ImageKit1.File.Cancel = true;
			else
				ImageKit1.File.Cancel = false;

			Application.DoEvents();		
		
		}

		//exit
		private void Command3_Click(object sender, System.EventArgs e)
		{
			this.Close();
		}

		private void Form1_Closed(object sender, System.EventArgs e)
		{
			ProgressForm.Close();		
		}

	}
}
