发送端:
截图:
需添加的引用:
using System.Net ; using System.IO ; using System.Net.Sockets ; private System.Windows.Forms.Label lblIP; private System.Windows.Forms.Label lblPort; private System.Windows.Forms.TextBox txtIP; private System.Windows.Forms.TextBox txtPort; private System.Windows.Forms.Button btnConnect; private System.Windows.Forms.Button btnFile; private System.Windows.Forms.Button btnSend; private System.Windows.Forms.Label labMsg; private System.Windows.Forms.TextBox txtPath; private System.Windows.For