How make autoscroll in Scintilla?

后端 未结 2 1421
挽巷
挽巷 2021-01-23 17:42

I have a simple VB.NET application using Scintilla. I don`t know how can I make the control auto scroll when text is added to it.

Can anyone help?

Thanks

2条回答
  •  北海茫月
    2021-01-23 18:12

    Done.

    Scintilla can auto-scroll by calling:

    Scintilla1.Scrolling.ScrollBy(0, Scintilla1.Lines.Count)

    so it scrolls to the last text line.

提交回复
热议问题