Peter Duniho
11/4/2008 8:24:00 PM
On Tue, 04 Nov 2008 06:17:36 -0800, Don Gollahon
<don.gollahon@nospam.acs-inc.com> wrote:
> I have a PictureBox inside a panel with Autoscroll on. I've added
> buttons for rotate and zoom as well.
>
> Currently only the vertical scrollbar shows which is what I want. But
> when I zoom on the image I want the
> horizontal srollbar to appear as needed. I cannot figure out how to do
> that. Any suggestions?
It's impossible to say when you don't provide a concise-but-complete code
sample to demonstrate what you're doing.
But: as long as the PictureBox is in fact a child of the Panel, then as
its size changes, the Panel should automatically show/configure its scroll
bars to account for that. If you're not seeing that happen, then either
the PictureBox isn't actually a child of the Panel, or its size isn't
being changed according to whatever changes you make to it to handle your
zoom feature.
Pete