문제

I have a thumbnail control where I am adding Images using openfiledialog and after adding it automatically scrolls down.

So I would like to stop scrolling the scrollbar and just append the Images.

I have tried using this code:

Thumbcontrol1.VerticalScroll.Value=0

It worked fine but the scrollbar is at the bottom and it shows me the first row of Images.

And this is my second attempt by doing this way:

I have just set the autoscroll property to false and it hides the scrollbars and I'm stuck with this so how do I scroll the remaining Images?

And Is there any other method to hide scrollbars and just scroll the Images using mouse? Or any other simpler way to get rid of this?

도움이 되었습니까?

해결책

I would try setting autoscroll to false before adding an image, then setting it back to true after the image has been added.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top