I'm currently making a typing program. I have a text file being read into a richtext box. This text is what needs to be typed but the richtextbox can only fit so many lines and I want to be able to scroll to the next line to show the rest of the texts once the previous lines have already been attempted.
I've tried textbox.ScrollToCaret() but all it does it makes the text box flicker, as in scrolling up and down.
I do record the index but the ways I have tried has not worked. Hacky ways such as (to mainly test it out):
if(index > 300)
textbox.ScrollToCaret();
300 Being the current maximum characters visible on the text box. Is there any way to scroll to show the rest of the lines on the text box? I'm happy to provide more information if needed.
wordPreview.BeginUpdate();
wordPreview.SelectionStart = wordPreview.TextLength;
wordPreview.ScrollToCaret();
wordPreview.EndUpdate();