private void richTextBox1_TextChanged(object sender, EventArgs e)
 {
     if (!string.IsNullOrEmpty(richTextBox1.Text))
     {
         messageSpecs.UserTyping userTyping = new messageSpecs.UserTyping();
         userTyping.sender = myUID.ToString();
         userTyping.receiver = friendUID.ToString();
         myClient.Send(userTyping.getMessageString());
     }
 }
 private void handleTypingNotification(string message)
 {
     messageSpecs.UserTyping userTypingMessage = new messageSpecs.UserTyping(message);
     tmrTypingNotification.Tick += new EventHandler(typingHandler);
     tmrTypingNotification.Start();
     labelNotificationTyping.Text = userTypingMessage.sender + " is typing...";
     labelNotificationTyping.Visible = true;
 }