i did send text from client to server application and print this text in textbox but i can not copy it.what i should do ?
while ((i = stream.Read(bytes, 0, bytes.Length)) != 0) { // Translate data bytes to a ASCII string. data = System.Text.Encoding.ASCII.GetString(bytes, 0, i).ToString(); MessageBox.Show( "Received: {0}", data); textBox1.AppendText (data); // Process the data sent by the client. data = data.ToUpper(); byte[] msg = System.Text.Encoding.ASCII.GetBytes(data); // Send back a response. stream.Write(msg, 0, msg.Length); } // Shutdown and end connection client.Close();