I am trying to use VBAccelerator Scrollbar class to scroll picture in picturebox. But I noticed the thumb position exceed MAX value by 1 pixes.
For example:
My picturebox's ScaleWidth is 600 pixels,the picture has 1000 pixels width.
m_HVScroll.Visible(efsHorizontal) = True
m_HVScroll.Min(efsHorizontal) = 0
m_HVScroll.LargeChange(efsHorizontal) = 600 'equal to picture1.ScaleWidth
m_HVScroll.Max(efsHorizontal) = 1000-600 'Maximum available movement
m_HVScroll.SmallChange(efsHorizontal) = 10 'click button to move 10 pixels
If I moving the Thumb to the right end, the debug window shows the m_HVScroll.Value(efsHorizontal) = 401.
If I click the Right button, the Value change to 400, I can see the scrollbat stepping backward 1 pixel.
Those are not what I want. I need m_HVScroll.Value(efsHorizontal)= 400 at the end because Max is 400.
I found another demo on VBAccelerator. Obviously, the scrollbar has exactly the same problem. That means the original class has the problem instead of my code.
FYI, I remembered the great sGrid2 scrollbar also had the same problem.
Even though the problem is small, but quite annoying...

Attachment:
http://www.vbforums.com/attachment.php?attachmentid=113339&d=1398582988