[DllImport("user32.dll", CharSet = CharSet.Auto)] private static extern IntPtr SendMessage(IntPtr hWnd, int wMsg, IntPtr wParam, IntPtr lParam); private const int WM_VSCROLL = 277; private const int SB_PAGEBOTTOM = 7; internal static void ScrollToBottom(RichTextBox richTextBox) { SendMessage(richTextBox.Handle, WM_VSCROLL, (IntPtr)SB_PAGEBOTTOM, IntPtr.Zero); richTextBox.SelectionStart = richTextBox.Text.Length; }
ScrollToBottom (RichTextBox);
using the above method you can scroll the text field down
Prem Kumar Badri May 08 '18 at 15:04 2018-05-08 15:04
source share