Question hScrollbar Control

mad_schatz

Member
Joined
Jan 1, 2009
Messages
15
Programming Experience
1-3
Hello All

I got a question about hScrollbar control.

My hScroolBar control does not scroll till the maximum value given.

For example if I set 100 for maximum of hscrollbar, the maximum I can scrool is 91.

when I tried a sample in VB6.0 hScrollBar scrolls till the maximum, in this case 100

Is there any explanation for this ?
 
That's because it consider the "LargeChange" property as the size of a page. You would normally scroll until you can see all of you 100 elements, but if your page contains 10 element (the default), then your first element is the 91th.
 
Hi Stonkie,

Thanks for the reply. But unfortunately I did not understand what is the relation between form and "LargeChange" as my hscroll does nothing with the form in runtime.

I'm planing to use hscroll to move a controller on the form.

I have a picture control inside a panel control on the form and I want to move the picture control inside the panel -100 units left using HSCROLL.

If I set the maximum of the hscroll to 100 I can move the control only 91 units, not 100 units ?
 
Back
Top