<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
		<id>http://nfex.ru/index.php?action=history&amp;feed=atom&amp;title=Csharp%2FC_Sharp_by_API%2FSystem.Net%2FFtpWebRequest</id>
		<title>Csharp/C Sharp by API/System.Net/FtpWebRequest - История изменений</title>
		<link rel="self" type="application/atom+xml" href="http://nfex.ru/index.php?action=history&amp;feed=atom&amp;title=Csharp%2FC_Sharp_by_API%2FSystem.Net%2FFtpWebRequest"/>
		<link rel="alternate" type="text/html" href="http://nfex.ru/index.php?title=Csharp/C_Sharp_by_API/System.Net/FtpWebRequest&amp;action=history"/>
		<updated>2026-04-16T21:53:08Z</updated>
		<subtitle>История изменений этой страницы в вики</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://nfex.ru/index.php?title=Csharp/C_Sharp_by_API/System.Net/FtpWebRequest&amp;diff=5063&amp;oldid=prev</id>
		<title> в 15:31, 26 мая 2010</title>
		<link rel="alternate" type="text/html" href="http://nfex.ru/index.php?title=Csharp/C_Sharp_by_API/System.Net/FtpWebRequest&amp;diff=5063&amp;oldid=prev"/>
				<updated>2010-05-26T15:31:35Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Предыдущая&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Версия 15:31, 26 мая 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; style=&quot;text-align: center;&quot; lang=&quot;ru&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(нет различий)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
			</entry>

	<entry>
		<id>http://nfex.ru/index.php?title=Csharp/C_Sharp_by_API/System.Net/FtpWebRequest&amp;diff=5064&amp;oldid=prev</id>
		<title>Admin: 1 версия</title>
		<link rel="alternate" type="text/html" href="http://nfex.ru/index.php?title=Csharp/C_Sharp_by_API/System.Net/FtpWebRequest&amp;diff=5064&amp;oldid=prev"/>
				<updated>2010-05-26T12:12:42Z</updated>
		
		<summary type="html">&lt;p&gt;1 версия&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==FtpWebRequest.Credentials==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;  &lt;br /&gt;
using System;&lt;br /&gt;
using System.Collections.Generic;&lt;br /&gt;
using System.ruponentModel;&lt;br /&gt;
using System.Data;&lt;br /&gt;
using System.Drawing;&lt;br /&gt;
using System.Windows.Forms;&lt;br /&gt;
using System.Net;&lt;br /&gt;
using System.IO;&lt;br /&gt;
class FtpClientForm : Form {&lt;br /&gt;
    public FtpClientForm() {&lt;br /&gt;
        InitializeComponent();&lt;br /&gt;
    }&lt;br /&gt;
    private string serverDirectory;&lt;br /&gt;
    private void OnOpen(object sender, EventArgs e) {&lt;br /&gt;
        Cursor currentCursor = this.Cursor;&lt;br /&gt;
        FtpWebResponse response = null;&lt;br /&gt;
        Stream stream = null;&lt;br /&gt;
        this.Cursor = Cursors.WaitCursor;&lt;br /&gt;
        FtpWebRequest request = (FtpWebRequest)WebRequest.Create(textServer.Text);&lt;br /&gt;
        request.Credentials = new NetworkCredential(textUsername.Text,&lt;br /&gt;
              textPassword.Text);&lt;br /&gt;
        request.Method = WebRequestMethods.Ftp.ListDirectory;&lt;br /&gt;
        response = (FtpWebResponse)request.GetResponse();&lt;br /&gt;
        stream = response.GetResponseStream();&lt;br /&gt;
        FillDirectoryList(stream);&lt;br /&gt;
        serverDirectory = null;&lt;br /&gt;
        buttonOpenDirectory.Enabled = false;&lt;br /&gt;
        buttonGetFile.Enabled = false;&lt;br /&gt;
        if (response != null)&lt;br /&gt;
            response.Close();&lt;br /&gt;
        if (stream != null)&lt;br /&gt;
            stream.Close();&lt;br /&gt;
        this.Cursor = currentCursor;&lt;br /&gt;
    }&lt;br /&gt;
    private void FillDirectoryList(Stream stream) {&lt;br /&gt;
        StreamReader reader = new StreamReader(stream);&lt;br /&gt;
        string content = reader.ReadToEnd();&lt;br /&gt;
        string[] files = content.Split(&amp;quot;\n&amp;quot;);&lt;br /&gt;
        listFiles.DataSource = files;&lt;br /&gt;
        reader.Close();&lt;br /&gt;
    }&lt;br /&gt;
    private void OnOpenDirectory(object sender, EventArgs e) {&lt;br /&gt;
        FtpWebResponse response = null;&lt;br /&gt;
        Stream stream = null;&lt;br /&gt;
        string subDirectory = listFiles.SelectedValue.ToString().Trim();&lt;br /&gt;
        serverDirectory += @&amp;quot;/&amp;quot; + subDirectory;&lt;br /&gt;
        Uri baseUri = new Uri(textServer.Text);&lt;br /&gt;
        Uri uri = new Uri(baseUri, serverDirectory);&lt;br /&gt;
        FtpWebRequest request = (FtpWebRequest)WebRequest.Create(uri);&lt;br /&gt;
        request.Credentials = new NetworkCredential(textUsername.Text,&lt;br /&gt;
              textPassword.Text);&lt;br /&gt;
        request.Method = WebRequestMethods.Ftp.ListDirectory;&lt;br /&gt;
        response = (FtpWebResponse)request.GetResponse();&lt;br /&gt;
        stream = response.GetResponseStream();&lt;br /&gt;
        FillDirectoryList(stream);&lt;br /&gt;
        if (response != null)&lt;br /&gt;
            response.Close();&lt;br /&gt;
        if (stream != null)&lt;br /&gt;
            stream.Close();&lt;br /&gt;
    }&lt;br /&gt;
    private void OnDownloadFile(object sender, EventArgs e) {&lt;br /&gt;
        FtpWebResponse response = null;&lt;br /&gt;
        Stream inStream = null;&lt;br /&gt;
        Stream outStream = null;&lt;br /&gt;
        Uri baseUri = new Uri(textServer.Text);&lt;br /&gt;
        string filename = listFiles.SelectedValue.ToString().Trim();&lt;br /&gt;
        string fullFilename = serverDirectory + @&amp;quot;/&amp;quot; + filename;&lt;br /&gt;
        Uri uri = new Uri(baseUri, fullFilename);&lt;br /&gt;
        FtpWebRequest request = (FtpWebRequest)WebRequest.Create(uri);&lt;br /&gt;
        request.Credentials = new NetworkCredential(textUsername.Text,textPassword.Text);&lt;br /&gt;
        request.Method = WebRequestMethods.Ftp.DownloadFile;&lt;br /&gt;
        request.UseBinary = checkBoxBinary.Checked;&lt;br /&gt;
        response = (FtpWebResponse)request.GetResponse();&lt;br /&gt;
        inStream = response.GetResponseStream();&lt;br /&gt;
        saveFileDialog1.FileName = filename;&lt;br /&gt;
        if (saveFileDialog1.ShowDialog() == DialogResult.OK) {&lt;br /&gt;
            outStream = File.OpenWrite(saveFileDialog1.FileName);&lt;br /&gt;
            byte[] buffer = new byte[4096];&lt;br /&gt;
            int size = 0;&lt;br /&gt;
            while ((size = inStream.Read(buffer, 0, 4096)) &amp;gt; 0) {&lt;br /&gt;
                outStream.Write(buffer, 0, size);&lt;br /&gt;
            }&lt;br /&gt;
        }&lt;br /&gt;
        if (inStream != null)&lt;br /&gt;
            inStream.Close();&lt;br /&gt;
        if (outStream != null)&lt;br /&gt;
            outStream.Close();&lt;br /&gt;
        if (response != null)&lt;br /&gt;
            response.Close();&lt;br /&gt;
    }&lt;br /&gt;
    private void OnFileSelection(object sender, EventArgs e) {&lt;br /&gt;
        this.buttonGetFile.Enabled = true;&lt;br /&gt;
        this.buttonOpenDirectory.Enabled = true;&lt;br /&gt;
    }&lt;br /&gt;
    private void InitializeComponent() {&lt;br /&gt;
        this.label1 = new System.Windows.Forms.Label();&lt;br /&gt;
        this.textServer = new System.Windows.Forms.TextBox();&lt;br /&gt;
        this.buttonOpen = new System.Windows.Forms.Button();&lt;br /&gt;
        this.statusStrip1 = new System.Windows.Forms.StatusStrip();&lt;br /&gt;
        this.listFiles = new System.Windows.Forms.ListBox();&lt;br /&gt;
        this.buttonOpenDirectory = new System.Windows.Forms.Button();&lt;br /&gt;
        this.buttonGetFile = new System.Windows.Forms.Button();&lt;br /&gt;
        this.saveFileDialog1 = new System.Windows.Forms.SaveFileDialog();&lt;br /&gt;
        this.checkBoxBinary = new System.Windows.Forms.CheckBox();&lt;br /&gt;
        this.label2 = new System.Windows.Forms.Label();&lt;br /&gt;
        this.label3 = new System.Windows.Forms.Label();&lt;br /&gt;
        this.textUsername = new System.Windows.Forms.TextBox();&lt;br /&gt;
        this.textPassword = new System.Windows.Forms.TextBox();&lt;br /&gt;
        this.SuspendLayout();&lt;br /&gt;
        this.label1.AutoSize = true;&lt;br /&gt;
        this.label1.Location = new System.Drawing.Point(28, 31);&lt;br /&gt;
        this.label1.Size = new System.Drawing.Size(37, 13);&lt;br /&gt;
        this.label1.Text = &amp;quot;Server:&amp;quot;;&lt;br /&gt;
        this.textServer.Location = new System.Drawing.Point(109, 31);&lt;br /&gt;
        this.textServer.Size = new System.Drawing.Size(146, 20);&lt;br /&gt;
        this.textServer.Text = &amp;quot;ftp://&amp;quot;;&lt;br /&gt;
        this.buttonOpen.Location = new System.Drawing.Point(371, 31);&lt;br /&gt;
        this.buttonOpen.Size = new System.Drawing.Size(103, 23);&lt;br /&gt;
        this.buttonOpen.Text = &amp;quot;Open&amp;quot;;&lt;br /&gt;
        this.buttonOpen.Click += new System.EventHandler(this.OnOpen);&lt;br /&gt;
        this.statusStrip1.LayoutStyle = System.Windows.Forms.ToolStripLayoutStyle.Table;&lt;br /&gt;
        this.statusStrip1.Location = new System.Drawing.Point(0, 0);&lt;br /&gt;
        this.statusStrip1.Size = new System.Drawing.Size(496, 18);&lt;br /&gt;
        this.listFiles.FormattingEnabled = true;&lt;br /&gt;
        this.listFiles.Location = new System.Drawing.Point(28, 149);&lt;br /&gt;
        this.listFiles.Size = new System.Drawing.Size(315, 160);&lt;br /&gt;
        this.listFiles.SelectedIndexChanged += new System.EventHandler(this.OnFileSelection);&lt;br /&gt;
        this.buttonOpenDirectory.Enabled = false;&lt;br /&gt;
        this.buttonOpenDirectory.Location = new System.Drawing.Point(371, 77);&lt;br /&gt;
        this.buttonOpenDirectory.Name = &amp;quot;buttonOpenDirectory&amp;quot;;&lt;br /&gt;
        this.buttonOpenDirectory.Size = new System.Drawing.Size(103, 23);&lt;br /&gt;
        this.buttonOpenDirectory.Text = &amp;quot;Open Directory&amp;quot;;&lt;br /&gt;
        this.buttonOpenDirectory.Click += new System.EventHandler(this.OnOpenDirectory);&lt;br /&gt;
        this.buttonGetFile.Enabled = false;&lt;br /&gt;
        this.buttonGetFile.Location = new System.Drawing.Point(371, 122);&lt;br /&gt;
        this.buttonGetFile.Size = new System.Drawing.Size(103, 23);&lt;br /&gt;
        this.buttonGetFile.Text = &amp;quot;Get File&amp;quot;;&lt;br /&gt;
        this.buttonGetFile.Click += new System.EventHandler(this.OnDownloadFile);&lt;br /&gt;
        this.checkBoxBinary.AutoSize = true;&lt;br /&gt;
        this.checkBoxBinary.Checked = true;&lt;br /&gt;
        this.checkBoxBinary.CheckState = System.Windows.Forms.CheckState.Checked;&lt;br /&gt;
        this.checkBoxBinary.Location = new System.Drawing.Point(371, 190);&lt;br /&gt;
        this.checkBoxBinary.Size = new System.Drawing.Size(81, 17);&lt;br /&gt;
        this.checkBoxBinary.Text = &amp;quot;Binary Mode&amp;quot;;&lt;br /&gt;
        this.label2.AutoSize = true;&lt;br /&gt;
        this.label2.Location = new System.Drawing.Point(28, 62);&lt;br /&gt;
        this.label2.Size = new System.Drawing.Size(54, 13);&lt;br /&gt;
        this.label2.Text = &amp;quot;Username:&amp;quot;;&lt;br /&gt;
        this.label3.AutoSize = true;&lt;br /&gt;
        this.label3.Location = new System.Drawing.Point(28, 101);&lt;br /&gt;
        this.label3.Size = new System.Drawing.Size(52, 13);&lt;br /&gt;
        this.label3.Text = &amp;quot;Password:&amp;quot;;&lt;br /&gt;
        this.textUsername.Location = new System.Drawing.Point(109, 62);&lt;br /&gt;
        this.textUsername.Size = new System.Drawing.Size(146, 20);&lt;br /&gt;
        this.textUsername.Text = &amp;quot;Anonymous&amp;quot;;&lt;br /&gt;
        this.textPassword.Location = new System.Drawing.Point(109, 101);&lt;br /&gt;
        this.textPassword.PasswordChar = &amp;quot;?&amp;quot;;&lt;br /&gt;
        this.textPassword.Size = new System.Drawing.Size(146, 20);&lt;br /&gt;
        this.textPassword.UseSystemPasswordChar = true;&lt;br /&gt;
        this.ClientSize = new System.Drawing.Size(496, 353);&lt;br /&gt;
        this.Controls.Add(this.textPassword);&lt;br /&gt;
        this.Controls.Add(this.textUsername);&lt;br /&gt;
        this.Controls.Add(this.label3);&lt;br /&gt;
        this.Controls.Add(this.label2);&lt;br /&gt;
        this.Controls.Add(this.checkBoxBinary);&lt;br /&gt;
        this.Controls.Add(this.buttonGetFile);&lt;br /&gt;
        this.Controls.Add(this.buttonOpenDirectory);&lt;br /&gt;
        this.Controls.Add(this.listFiles);&lt;br /&gt;
        this.Controls.Add(this.buttonOpen);&lt;br /&gt;
        this.Controls.Add(this.textServer);&lt;br /&gt;
        this.Controls.Add(this.label1);&lt;br /&gt;
        this.Text = &amp;quot;FTP Client&amp;quot;;&lt;br /&gt;
        this.ResumeLayout(false);&lt;br /&gt;
        this.PerformLayout();&lt;br /&gt;
    }&lt;br /&gt;
    private System.Windows.Forms.Label label1;&lt;br /&gt;
    private System.Windows.Forms.TextBox textServer;&lt;br /&gt;
    private System.Windows.Forms.Button buttonOpen;&lt;br /&gt;
    private System.Windows.Forms.StatusStrip statusStrip1;&lt;br /&gt;
    private System.Windows.Forms.ListBox listFiles;&lt;br /&gt;
    private System.Windows.Forms.Button buttonOpenDirectory;&lt;br /&gt;
    private System.Windows.Forms.Button buttonGetFile;&lt;br /&gt;
    private System.Windows.Forms.SaveFileDialog saveFileDialog1;&lt;br /&gt;
    private System.Windows.Forms.CheckBox checkBoxBinary;&lt;br /&gt;
    private System.Windows.Forms.Label label2;&lt;br /&gt;
    private System.Windows.Forms.Label label3;&lt;br /&gt;
    private System.Windows.Forms.TextBox textUsername;&lt;br /&gt;
    private System.Windows.Forms.TextBox textPassword;&lt;br /&gt;
    [STAThread]&lt;br /&gt;
    static void Main() {&lt;br /&gt;
        Application.EnableVisualStyles();&lt;br /&gt;
        Application.Run(new FtpClientForm());&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
   &lt;br /&gt;
    &lt;br /&gt;
  &amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==FtpWebRequest.Method==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;  &lt;br /&gt;
using System;&lt;br /&gt;
using System.Collections.Generic;&lt;br /&gt;
using System.ruponentModel;&lt;br /&gt;
using System.Data;&lt;br /&gt;
using System.Drawing;&lt;br /&gt;
using System.Windows.Forms;&lt;br /&gt;
using System.Net;&lt;br /&gt;
using System.IO;&lt;br /&gt;
class FtpClientForm : Form {&lt;br /&gt;
    public FtpClientForm() {&lt;br /&gt;
        InitializeComponent();&lt;br /&gt;
    }&lt;br /&gt;
    private string serverDirectory;&lt;br /&gt;
    private void OnOpen(object sender, EventArgs e) {&lt;br /&gt;
        Cursor currentCursor = this.Cursor;&lt;br /&gt;
        FtpWebResponse response = null;&lt;br /&gt;
        Stream stream = null;&lt;br /&gt;
        this.Cursor = Cursors.WaitCursor;&lt;br /&gt;
        FtpWebRequest request = (FtpWebRequest)WebRequest.Create(textServer.Text);&lt;br /&gt;
        request.Credentials = new NetworkCredential(textUsername.Text,&lt;br /&gt;
              textPassword.Text);&lt;br /&gt;
        request.Method = WebRequestMethods.Ftp.ListDirectory;&lt;br /&gt;
        response = (FtpWebResponse)request.GetResponse();&lt;br /&gt;
        stream = response.GetResponseStream();&lt;br /&gt;
        FillDirectoryList(stream);&lt;br /&gt;
        serverDirectory = null;&lt;br /&gt;
        buttonOpenDirectory.Enabled = false;&lt;br /&gt;
        buttonGetFile.Enabled = false;&lt;br /&gt;
        if (response != null)&lt;br /&gt;
            response.Close();&lt;br /&gt;
        if (stream != null)&lt;br /&gt;
            stream.Close();&lt;br /&gt;
        this.Cursor = currentCursor;&lt;br /&gt;
    }&lt;br /&gt;
    private void FillDirectoryList(Stream stream) {&lt;br /&gt;
        StreamReader reader = new StreamReader(stream);&lt;br /&gt;
        string content = reader.ReadToEnd();&lt;br /&gt;
        string[] files = content.Split(&amp;quot;\n&amp;quot;);&lt;br /&gt;
        listFiles.DataSource = files;&lt;br /&gt;
        reader.Close();&lt;br /&gt;
    }&lt;br /&gt;
    private void OnOpenDirectory(object sender, EventArgs e) {&lt;br /&gt;
        FtpWebResponse response = null;&lt;br /&gt;
        Stream stream = null;&lt;br /&gt;
        string subDirectory = listFiles.SelectedValue.ToString().Trim();&lt;br /&gt;
        serverDirectory += @&amp;quot;/&amp;quot; + subDirectory;&lt;br /&gt;
        Uri baseUri = new Uri(textServer.Text);&lt;br /&gt;
        Uri uri = new Uri(baseUri, serverDirectory);&lt;br /&gt;
        FtpWebRequest request = (FtpWebRequest)WebRequest.Create(uri);&lt;br /&gt;
        request.Credentials = new NetworkCredential(textUsername.Text,&lt;br /&gt;
              textPassword.Text);&lt;br /&gt;
        request.Method = WebRequestMethods.Ftp.ListDirectory;&lt;br /&gt;
        response = (FtpWebResponse)request.GetResponse();&lt;br /&gt;
        stream = response.GetResponseStream();&lt;br /&gt;
        FillDirectoryList(stream);&lt;br /&gt;
        if (response != null)&lt;br /&gt;
            response.Close();&lt;br /&gt;
        if (stream != null)&lt;br /&gt;
            stream.Close();&lt;br /&gt;
    }&lt;br /&gt;
    private void OnDownloadFile(object sender, EventArgs e) {&lt;br /&gt;
        FtpWebResponse response = null;&lt;br /&gt;
        Stream inStream = null;&lt;br /&gt;
        Stream outStream = null;&lt;br /&gt;
        Uri baseUri = new Uri(textServer.Text);&lt;br /&gt;
        string filename = listFiles.SelectedValue.ToString().Trim();&lt;br /&gt;
        string fullFilename = serverDirectory + @&amp;quot;/&amp;quot; + filename;&lt;br /&gt;
        Uri uri = new Uri(baseUri, fullFilename);&lt;br /&gt;
        FtpWebRequest request = (FtpWebRequest)WebRequest.Create(uri);&lt;br /&gt;
        request.Credentials = new NetworkCredential(textUsername.Text,textPassword.Text);&lt;br /&gt;
        request.Method = WebRequestMethods.Ftp.DownloadFile;&lt;br /&gt;
        request.UseBinary = checkBoxBinary.Checked;&lt;br /&gt;
        response = (FtpWebResponse)request.GetResponse();&lt;br /&gt;
        inStream = response.GetResponseStream();&lt;br /&gt;
        saveFileDialog1.FileName = filename;&lt;br /&gt;
        if (saveFileDialog1.ShowDialog() == DialogResult.OK) {&lt;br /&gt;
            outStream = File.OpenWrite(saveFileDialog1.FileName);&lt;br /&gt;
            byte[] buffer = new byte[4096];&lt;br /&gt;
            int size = 0;&lt;br /&gt;
            while ((size = inStream.Read(buffer, 0, 4096)) &amp;gt; 0) {&lt;br /&gt;
                outStream.Write(buffer, 0, size);&lt;br /&gt;
            }&lt;br /&gt;
        }&lt;br /&gt;
        if (inStream != null)&lt;br /&gt;
            inStream.Close();&lt;br /&gt;
        if (outStream != null)&lt;br /&gt;
            outStream.Close();&lt;br /&gt;
        if (response != null)&lt;br /&gt;
            response.Close();&lt;br /&gt;
    }&lt;br /&gt;
    private void OnFileSelection(object sender, EventArgs e) {&lt;br /&gt;
        this.buttonGetFile.Enabled = true;&lt;br /&gt;
        this.buttonOpenDirectory.Enabled = true;&lt;br /&gt;
    }&lt;br /&gt;
    private void InitializeComponent() {&lt;br /&gt;
        this.label1 = new System.Windows.Forms.Label();&lt;br /&gt;
        this.textServer = new System.Windows.Forms.TextBox();&lt;br /&gt;
        this.buttonOpen = new System.Windows.Forms.Button();&lt;br /&gt;
        this.statusStrip1 = new System.Windows.Forms.StatusStrip();&lt;br /&gt;
        this.listFiles = new System.Windows.Forms.ListBox();&lt;br /&gt;
        this.buttonOpenDirectory = new System.Windows.Forms.Button();&lt;br /&gt;
        this.buttonGetFile = new System.Windows.Forms.Button();&lt;br /&gt;
        this.saveFileDialog1 = new System.Windows.Forms.SaveFileDialog();&lt;br /&gt;
        this.checkBoxBinary = new System.Windows.Forms.CheckBox();&lt;br /&gt;
        this.label2 = new System.Windows.Forms.Label();&lt;br /&gt;
        this.label3 = new System.Windows.Forms.Label();&lt;br /&gt;
        this.textUsername = new System.Windows.Forms.TextBox();&lt;br /&gt;
        this.textPassword = new System.Windows.Forms.TextBox();&lt;br /&gt;
        this.SuspendLayout();&lt;br /&gt;
        this.label1.AutoSize = true;&lt;br /&gt;
        this.label1.Location = new System.Drawing.Point(28, 31);&lt;br /&gt;
        this.label1.Size = new System.Drawing.Size(37, 13);&lt;br /&gt;
        this.label1.Text = &amp;quot;Server:&amp;quot;;&lt;br /&gt;
        this.textServer.Location = new System.Drawing.Point(109, 31);&lt;br /&gt;
        this.textServer.Size = new System.Drawing.Size(146, 20);&lt;br /&gt;
        this.textServer.Text = &amp;quot;ftp://&amp;quot;;&lt;br /&gt;
        this.buttonOpen.Location = new System.Drawing.Point(371, 31);&lt;br /&gt;
        this.buttonOpen.Size = new System.Drawing.Size(103, 23);&lt;br /&gt;
        this.buttonOpen.Text = &amp;quot;Open&amp;quot;;&lt;br /&gt;
        this.buttonOpen.Click += new System.EventHandler(this.OnOpen);&lt;br /&gt;
        this.statusStrip1.LayoutStyle = System.Windows.Forms.ToolStripLayoutStyle.Table;&lt;br /&gt;
        this.statusStrip1.Location = new System.Drawing.Point(0, 0);&lt;br /&gt;
        this.statusStrip1.Size = new System.Drawing.Size(496, 18);&lt;br /&gt;
        this.listFiles.FormattingEnabled = true;&lt;br /&gt;
        this.listFiles.Location = new System.Drawing.Point(28, 149);&lt;br /&gt;
        this.listFiles.Size = new System.Drawing.Size(315, 160);&lt;br /&gt;
        this.listFiles.SelectedIndexChanged += new System.EventHandler(this.OnFileSelection);&lt;br /&gt;
        this.buttonOpenDirectory.Enabled = false;&lt;br /&gt;
        this.buttonOpenDirectory.Location = new System.Drawing.Point(371, 77);&lt;br /&gt;
        this.buttonOpenDirectory.Name = &amp;quot;buttonOpenDirectory&amp;quot;;&lt;br /&gt;
        this.buttonOpenDirectory.Size = new System.Drawing.Size(103, 23);&lt;br /&gt;
        this.buttonOpenDirectory.Text = &amp;quot;Open Directory&amp;quot;;&lt;br /&gt;
        this.buttonOpenDirectory.Click += new System.EventHandler(this.OnOpenDirectory);&lt;br /&gt;
        this.buttonGetFile.Enabled = false;&lt;br /&gt;
        this.buttonGetFile.Location = new System.Drawing.Point(371, 122);&lt;br /&gt;
        this.buttonGetFile.Size = new System.Drawing.Size(103, 23);&lt;br /&gt;
        this.buttonGetFile.Text = &amp;quot;Get File&amp;quot;;&lt;br /&gt;
        this.buttonGetFile.Click += new System.EventHandler(this.OnDownloadFile);&lt;br /&gt;
        this.checkBoxBinary.AutoSize = true;&lt;br /&gt;
        this.checkBoxBinary.Checked = true;&lt;br /&gt;
        this.checkBoxBinary.CheckState = System.Windows.Forms.CheckState.Checked;&lt;br /&gt;
        this.checkBoxBinary.Location = new System.Drawing.Point(371, 190);&lt;br /&gt;
        this.checkBoxBinary.Size = new System.Drawing.Size(81, 17);&lt;br /&gt;
        this.checkBoxBinary.Text = &amp;quot;Binary Mode&amp;quot;;&lt;br /&gt;
        this.label2.AutoSize = true;&lt;br /&gt;
        this.label2.Location = new System.Drawing.Point(28, 62);&lt;br /&gt;
        this.label2.Size = new System.Drawing.Size(54, 13);&lt;br /&gt;
        this.label2.Text = &amp;quot;Username:&amp;quot;;&lt;br /&gt;
        this.label3.AutoSize = true;&lt;br /&gt;
        this.label3.Location = new System.Drawing.Point(28, 101);&lt;br /&gt;
        this.label3.Size = new System.Drawing.Size(52, 13);&lt;br /&gt;
        this.label3.Text = &amp;quot;Password:&amp;quot;;&lt;br /&gt;
        this.textUsername.Location = new System.Drawing.Point(109, 62);&lt;br /&gt;
        this.textUsername.Size = new System.Drawing.Size(146, 20);&lt;br /&gt;
        this.textUsername.Text = &amp;quot;Anonymous&amp;quot;;&lt;br /&gt;
        this.textPassword.Location = new System.Drawing.Point(109, 101);&lt;br /&gt;
        this.textPassword.PasswordChar = &amp;quot;?&amp;quot;;&lt;br /&gt;
        this.textPassword.Size = new System.Drawing.Size(146, 20);&lt;br /&gt;
        this.textPassword.UseSystemPasswordChar = true;&lt;br /&gt;
        this.ClientSize = new System.Drawing.Size(496, 353);&lt;br /&gt;
        this.Controls.Add(this.textPassword);&lt;br /&gt;
        this.Controls.Add(this.textUsername);&lt;br /&gt;
        this.Controls.Add(this.label3);&lt;br /&gt;
        this.Controls.Add(this.label2);&lt;br /&gt;
        this.Controls.Add(this.checkBoxBinary);&lt;br /&gt;
        this.Controls.Add(this.buttonGetFile);&lt;br /&gt;
        this.Controls.Add(this.buttonOpenDirectory);&lt;br /&gt;
        this.Controls.Add(this.listFiles);&lt;br /&gt;
        this.Controls.Add(this.buttonOpen);&lt;br /&gt;
        this.Controls.Add(this.textServer);&lt;br /&gt;
        this.Controls.Add(this.label1);&lt;br /&gt;
        this.Text = &amp;quot;FTP Client&amp;quot;;&lt;br /&gt;
        this.ResumeLayout(false);&lt;br /&gt;
        this.PerformLayout();&lt;br /&gt;
    }&lt;br /&gt;
    private System.Windows.Forms.Label label1;&lt;br /&gt;
    private System.Windows.Forms.TextBox textServer;&lt;br /&gt;
    private System.Windows.Forms.Button buttonOpen;&lt;br /&gt;
    private System.Windows.Forms.StatusStrip statusStrip1;&lt;br /&gt;
    private System.Windows.Forms.ListBox listFiles;&lt;br /&gt;
    private System.Windows.Forms.Button buttonOpenDirectory;&lt;br /&gt;
    private System.Windows.Forms.Button buttonGetFile;&lt;br /&gt;
    private System.Windows.Forms.SaveFileDialog saveFileDialog1;&lt;br /&gt;
    private System.Windows.Forms.CheckBox checkBoxBinary;&lt;br /&gt;
    private System.Windows.Forms.Label label2;&lt;br /&gt;
    private System.Windows.Forms.Label label3;&lt;br /&gt;
    private System.Windows.Forms.TextBox textUsername;&lt;br /&gt;
    private System.Windows.Forms.TextBox textPassword;&lt;br /&gt;
    [STAThread]&lt;br /&gt;
    static void Main() {&lt;br /&gt;
        Application.EnableVisualStyles();&lt;br /&gt;
        Application.Run(new FtpClientForm());&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
   &lt;br /&gt;
    &lt;br /&gt;
  &amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	</feed>