From previous question link.
< --> lThumb = MakeDWord(SB_THUMBPOSITION, Me.Text1)>>
SB_THUMBPOSITION is a constant. You need to make it into a DWord so you can send it to the window to scroll.
< Sending a SB_THUMBPOSITION (or TRACK) just seems to move the scroll bar to the top... although I don't understand what you're trying to do with the MakeDWord bit
Haydn. >>
lThumb is a parameter of the SendMessage API which moves the window. The SetScrollInfo moves the scrollbar but not the form. The SendMessage call moves the form's window to the position the scrollbar is at if you substitute the Me.Text1 for the scrollbar's position.
lThumb = MakeDWord(SB_THUMBPOSITION, SI.nPos)
Joe
|