private void btn_ClientSend_Click(object sender, EventArgs e) { try { //Message byte[] message = new byte[4]; message[0] = byte.Parse(textBox0.Text); message[1] = byte.Parse(textBox1.Text); message[2] = byte.Parse(textBox2.Text); message[3] = byte.Parse(textBox3.Text); //Package Communication.Communication.IPandMessage sendMessage = new Communication.Communication.IPandMessage(IP, message); Client.sendMessage(sendMessage); } catch (Exception ex) { MessageBox.Show(ex.ToString()); } }