using System; using System.Windows.Forms; namespace UAS_PLCDataReader { public partial class RichTextAutoBottom : RichTextBox { public RichTextAutoBottom() { InitializeComponent(); TextChanged += RichTextBox_TextChange; } private void RichTextBox_TextChange(object sender, EventArgs e) { SelectionStart = Text.Length; ScrollToCaret(); } } }