You know how in a web browser, as the page loads, your scroll bar gets shorter as the page gets longer?
I am adding controls to an array one under the other and i need a scroll bar to shorten.
anyone know the code?
Printable View
You know how in a web browser, as the page loads, your scroll bar gets shorter as the page gets longer?
I am adding controls to an array one under the other and i need a scroll bar to shorten.
anyone know the code?
I think what you are trying to do is set the Max or Value property.
The Min and Max properties determine the size of the ScrollBar. The Value determines the position.
what is the equasion (if one exists) to calculate the min, max, and value of a scrollbar depending on how long something is
The scrollbar Vscroll and Hscroll doesn't work as the ones you see in IE, it's values are fixed to integer values so you'll never get a large bar that won't get fixed. The exact size of the bar is the total height / the visible height for IE, and for the scrollbars in vb 1/(max-min+1)
Ok
say i am adding coontrols using the
Load Command(whatevernumber)
one under the other inside a picture box.
How can I scroll the picture box so that a click on the scroll bar would be just the right amount that looks normal
(i.e. not .0005 mm or 100 feet)
You move all the controls in it with originalposition - scrollbarvalue*looksnormalvalue