sebdey
02-06-2004, 02:53 AM
Hello,
I would like to know how to programmatically change the scrollbar values of a panel scrollbars.
In my program, I've got a pictureBox in a panel. The pictureBox can contain images bigger than the panel, which will lead in the apparition of scrollbars. If I move the scrollbars, then the picture will be scrolled and the pictureBox top and left properties will change acording to the amount of scrolling.
I would like to be able to update the panel's scrollbars values when I programmatically change the top and left properties of the pictureBox. (Or just to be able to programmatically change the scrollbars values by any other mean if necessary...)
Thanks in advance
SebD
I would like to know how to programmatically change the scrollbar values of a panel scrollbars.
In my program, I've got a pictureBox in a panel. The pictureBox can contain images bigger than the panel, which will lead in the apparition of scrollbars. If I move the scrollbars, then the picture will be scrolled and the pictureBox top and left properties will change acording to the amount of scrolling.
I would like to be able to update the panel's scrollbars values when I programmatically change the top and left properties of the pictureBox. (Or just to be able to programmatically change the scrollbars values by any other mean if necessary...)
Thanks in advance
SebD