I have a listBox with numbers. I would like to sent the values from the listBox (on client- side) to another listbox (on server- side). The code works especially well with textBox1.Text (see below). I would like to have the numbers ( listbox on Server-Side) among each other(see figure). How can this be solved? Many thanks for your help and support!
//Client:
private void button2_Click(object sender, EventArgs e)
{
client.WriteLineAndGetReply(textBox1.Text,TimeSpan.FromSeconds(3));
}
//Server:
private void Server_DataReceived(object sender, SimpleTCP.Message e)
{
textBox1.Invoke((MethodInvoker)delegate ()
{
textBox1.Text += e.MessageString;
e.ReplyLine(string.Format(e.MessageString));
});
}