SelectionStart is the beginning of the string:


txtChat.SelectionStart = 0
txtChat.SelectionLength = txtChat.Text.Length