private void SetTextBoxFocus() { if (tbMessage.Text.Length > 0) { tbMessage.Select(tbMessage.Text.Length, 0); } tbMessage.Focus(); }