0

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();

8th Apr 2019, 7:23 AM
ALAMOUDI, WAEL MAKKI S
ALAMOUDI, WAEL MAKKI S - avatar
1 Odpowiedź
0
Check if the textBox1 properties are set to "readonly"
12th May 2019, 8:06 PM
Thomas Wittek
Thomas Wittek - avatar