During a find, I've got the found search string highlighted in a memo, and the find pauses with a dialog box. However the location of the found string is anywhere on the screen, sometimes hiding behind the dialog box

.
CaretPos.Y is giving me the line SelStart is on, so I then can calculate the desired line to be the first visible line. But the question is, what is the command to get the memo to scroll to a certain line number to be the first visible line in the window.
Thanks
Bazza