by Matthew Brown (1 Submission)
Category: String Manipulation
Compatability: Visual Basic 3.0
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating:
(7 Votes)
This bas contains a function that sets the cursor position in a Rich Text box to a given line without using API. This is a very fast method - no, it doesn't just scan through and check every line - and works fine even with long RichTextBox texts!
Inputs
The line you want to jump to, and the RichTextBox you want to control...
::
SetCursorAtLine(LineNumber, RichTextBox)