public void ReciveMessage(String msg) { ReciveBox.AppendText(m_PrivateNick + ": " + msg + "\n"); // Auto scroll ReciveBox.SelectionStart = ReciveBox.TextLength; ReciveBox.Focus(); ReciveBox.ScrollToCaret(); SendBox.Focus(); }
private void SendMessage() { ReciveBox.AppendText(m_MyNick + ": " + SendBox.Text + "\n"); m_ParentMsg.SendMsg(m_PrivateNick, SendBox.Text); SendBox.Clear(); // Auto scroll ReciveBox.SelectionStart = ReciveBox.TextLength; ReciveBox.Focus(); ReciveBox.ScrollToCaret(); SendBox.Focus(); }