e) { SendFile sfFile = new SendFile(strHost,iPort,strFile,this.pbMain) ; pbMain.Value = 0 ; StartThread(new ThreadStart(sfFile.Send)) ; } <b>发送文件的类:</b> public class SendFile { private string Host ; private int Port ; private string FileToSend ; private ProgressBar pbar; public SendFile(string strHost,int iPort,string strFile,ProgressBar pbMain) { Host = strHost ; Port = iPort ; FileToSend = strFile ; pbar = pbMain ; } public void Send() { 页码:[1] [2] [3] [4] [5] [6] [7] [8] 第4页、共8页 |