private void SendMessage() { if (remoteObj != null && txtChatHere.Text.Trim().Length > 0) { label2.Text = (remoteObj.divNum(float.Parse(txtChatHere.Text), float.Parse(textBox1.Text), func)).ToString(); } }