110,566
社区成员
发帖
与我相关
我的任务
分享
private void button2_Click(object sender, EventArgs e)
{
byte[] Rece = new byte[1024];
try
{
socket.Client.Receive(Rece);
string sRece = System.Text.ASCIIEncoding.ASCII.GetString(Rece);
listBox1.Items.Add(sRece);
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
}