using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Net;
using System.Text;
using System.IO;
namespace UploadFile
{
public class Form1 : System.Windows.Forms.Form
{
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Button button2;
private System.Windows.Forms.TextBox txtFileName;
private System.Windows.Forms.TextBox txtServerPath;
private System.Windows.Forms.LinkLabel linkLabel1;
private System.ComponentModel.Container components = null;
public Form1()
{
InitializeComponent();
}
protected override void Dispose( bool disposing )
{
if( disposing )
{
if (components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}
#region Windows Form Designer generated code
private void InitializeComponent()
{
System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(Form1));
this.label1 = new System.Windows.Forms.Label();
this.txtServerPath = new System.Windows.Forms.TextBox();
this.label2 = new System.Windows.Forms.Label();
this.button1 = new System.Windows.Forms.Button();
this.txtFileName = new System.Windows.Forms.TextBox();
this.label3 = new System.Windows.Forms.Label();
this.button2 = new System.Windows.Forms.Button();
this.linkLabel1 = new System.Windows.Forms.LinkLabel();
this.SuspendLayout();
//
// label1
//
this.label1.ForeColor = System.Drawing.Color.Red;
this.label1.Location = new System.Drawing.Point(8, 96);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(448, 16);
this.label1.TabIndex = 0;
this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// txtServerPath
//
this.txtServerPath.Location = new System.Drawing.Point(128, 8);
this.txtServerPath.Name = "txtServerPath";
this.txtServerPath.Size = new System.Drawing.Size(320, 21);
this.txtServerPath.TabIndex = 1;
this.txtServerPath.Text = "http://mengxianhui/aspxWeb/Images/";;
//
// label2
//
this.label2.AutoSize = true;
this.label2.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold,
System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
this.label2.ForeColor = System.Drawing.Color.Navy;
this.label2.Location = new System.Drawing.Point(8, 12);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(116, 17);
this.label2.TabIndex = 2;
this.label2.Text = "请输入服务器地址:";
this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// button1
//
this.button1.Location = new System.Drawing.Point(192, 64);
this.button1.Name = "button1";
this.button1.TabIndex = 3;
this.button1.Text = "上载文件";
this.button1.Click += new System.EventHandler(this.button1_Click);
this.button1.MouseDown += new System.Windows.Forms.MouseEventHandler(this.button1_MouseDown);
//
// txtFileName
//
this.txtFileName.Location = new System.Drawing.Point(128, 32);
this.txtFileName.Name = "txtFileName";
this.txtFileName.Size = new System.Drawing.Size(232, 21);
this.txtFileName.TabIndex = 4;
this.txtFileName.Text = "";
//
// label3
//
this.label3.AutoSize = true;
this.label3.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold,
System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
this.label3.ForeColor = System.Drawing.Color.DarkBlue;
this.label3.Location = new System.Drawing.