[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework

Panel and Autoscroll

Don Gollahon

11/4/2008 2:18:00 PM

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?

VS 2003, C#.

Thanks.

--

Don Gollahon
2 Answers

Peter Duniho

11/4/2008 8:24:00 PM

0

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

Don Gollahon

11/5/2008 6:28:00 PM

0

Peter Duniho wrote:

>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

I got this fixed. Thanks for your suggestions.

--

Don Gollahon