private void handleTextMessage(string message)
 {
     messageSpecs.TextMessage textMessage = new messageSpecs.TextMessage(message);
     MessageHolder MH = new MessageHolder(textMessage.sender + " : " + textMessage.TextToSend);
     chatMessageArea.RowCount += 1;
     chatMessageArea.Controls.Add(MH, 0, chatMessageArea.RowCount - 2);
     chatMessageArea.AutoScrollPosition = new Point(0, chatMessageArea.VerticalScroll.Maximum);
 }
        private void button1_Click(object sender, EventArgs e)
        {
            if (richTextBox1.Text == string.Empty)
                return;
            string message = richTextBox1.Text;
            messageSpecs.TextMessage textMessage = new messageSpecs.TextMessage();
            textMessage.sender = myUID.ToString();
            textMessage.receiver = friendUID.ToString();
            textMessage.TextToSend = message;
            myClient.Send(textMessage.getMessageString());

            MessageHolder MH = new MessageHolder("You : " + message);
            chatMessageArea.RowCount += 1;
            chatMessageArea.Controls.Add(MH, 1, chatMessageArea.RowCount - 2);
            chatMessageArea.AutoScrollPosition = new Point(0, chatMessageArea.VerticalScroll.Maximum);
            richTextBox1.Clear();
        }