Example #1
0
 private void buttonSend_Click(object sender, EventArgs e)
 {
     try
     {
         string sendstring = this.textBoxSend.Text;
         sendstring = sendstring.Replace(" ", "");
         byte[] bs = StringOperation.HexstringToHexBytes(sendstring);
         socketControl.Send(bs, bs.Length, 0);
         SendCnt += bs.Length;
         this.labelSendCnt.Text = SendCnt.ToString();
     }
     catch (Exception ex)
     { MessageBox.Show(ex.ToString()); }
 }