Is there a method to scroll the richtextbox to the top automatically with codes? Thanks!
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
you mean bottom?
instance.SelectionStart = instance.Text.Length;
or i guess top would be instance.SelectionStart = 0.
回答2:
Set .SelectionStart
=0
and then .ScrollToCaret()
.
回答3:
richTextBox.SelectionStart = richTextBox.Text.Length;
richTextBox.ScrollToCaret();
tRY the above 2 lines of code it worked for me!