1.打开VS.NET 2003.
2.新建一个WinForm Application.3.添加命名空间
using System;using System.Drawing;using System.Collections;using System.ComponentModel;using System.Windows.Forms;using System.Data;using System.Net;using System.Net.Sockets;using System.Text;using System.IO;
4.主要代码
为了防止界面在连接服务器时死锁,我另开了一个线程
private void button1_Click(object sender, System.EventArgs e){ Thread myThread=new Thread(new ThreadStart(TreadGet)); myThread.Start();}private void Tre...[ 查看全文 ]