Panel scrollbars

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

passel
02-06-2004, 06:04 AM
I guess I'm unfamiliar with what you are calling a panel. I assume you
are not talking about a panel object, part of a collection in a status bar.

With a normal scrollbar, you can just change it's .Value Property.

Does the panel's scrollbars not have a .value that you can modify?

sebdey
02-06-2004, 06:34 AM
Hello,

the panel control I'm talking of is a PANEL control ( you know, choosing panel in the toolbox... ;-) ) With autscroll = true, scrollbars will automatically appear on the edges of the panel if a control contained in this panel is outside the client area of the panel. I haven't found any method to acces these scrollbars values (neither for reading or for writing)

These scrollbars are not the HScrollBar or VScrollBar objects that you can add on a form, but scrollbars automatically created by Windows..

Don't hesitate to ask me for more details if I'm unclear...

Thanks

SebD

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum