// // // Gui Events // // // private void TextBoxTextChangedEvent(object sender, EventArgs e) //called when text is output to textbox on screen { TextOutput.SelectionStart = TextOutput.Text.Length; //set the current caret position at the end TextOutput.ScrollToCaret(); //scroll to it automatically }