private void buttonScrollToEnd_Click(object sender, EventArgs e) { textBox1.AppendText("New content added to end of textbox."); textBox1.ScrollToCaret(); }In this example, the AppendText method is used to add new content to the end of the text box, and then the ScrollToCaret method is called to scroll the view to the newly added content. The System.Windows.Forms package library is the package that provides the TextBox class and the ScrollToCaret method in C#. This package is included with the .NET Framework and is automatically installed with Visual Studio.