Good to hear I wasn't the only one coming across this problem and also you solved it (at least initially) the same way.
What variables are you referring to?
The only relevant code line I posted was this one:
Code:
Position = SV2.VerticalScrollPosition
The question is if you think this would always work.
If so then Sub SVF_ScrollChanged could be changed like this:
Code:
Private Sub SVF_ScrollChanged
Dim iPosition As Int = SV2.VerticalScrollPosition
SVFScrolls = True
If Position <> 0 Then 'added this to avoid the problem with scroll back to row zero with an initial down scroll
If SV2Scrolls = False Then
Scroll(SV2PosX, Position)
SV2.VerticalScrollPosition = Position
End If
End If
SVFScrolls = False
End Sub
RBS