FTP 服务器的安装和配置方法FTP 客户端的开发方法
源程序
using System;
using System.Collections.Generic; using http://www.77cn.com.cnponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text;
using System.Threading.Tasks; using System.IO; using http://www.77cn.com.cn;
using System.Windows.Forms;
namespace FTP_Client {
public partial class Form1 : Form {
private const int ftpport = 21; private string ftpUristring = null;
private NetworkCredential networkCredential; private string currentDir = "/"; public Form1() {
InitializeComponent();
IPAddress[] ips = Dns.GetHostAddresses(""); tbxServerIp.Text = ips[0].ToString(); tbxServerIp.SelectAll(); btnlogout.Enabled = false; lstbxFtpResources.Enabled = false; lstbxFtpState.Enabled = false; btnUpload.Enabled = false; btndownload.Enabled = false; btnDelete.Enabled = false; }
#region 键盘按下事件
private void tbxServerIp_KeyPress(object sender, KeyPressEventArgs e) {
// 输入用户名回车后,焦点直接转到密码文本框 if (e.KeyChar == (char)13) {
百度搜索“77cn”或“免费范文网”即可找到本站免费阅读全部范文。收藏本站方便下次阅读,免费范文网,提供经典小说综合文库网络协议的实现与应用实训报告(15)在线全文阅读。
相关推荐: