Re: Scrollable PictureBox

From: Steve McLellan (sjm_at_fixerlabs.com.NOSPAM)
Date: 03/24/04


Date: Wed, 24 Mar 2004 17:43:40 -0000

Hi,

Yeah, this did occur to be one way to do it, and it seems to be smoother
than fiddling around with scrollbars (not to mention easier to code). It
still seems a shame that they didn't add this functionality, since bodging
it like this isn't as smooth as it should be. Still eh, maybe in the next
framework release.

Thanks!

Steve

"Ken Varn" <nospam> wrote in message
news:edDOkNcEEHA.4016@TK2MSFTNGP09.phx.gbl...
> I have done this by placing the PictureBox into a Panel. Set the Panel
> width and height to your desired fixed dimensions. Then, resize the
> PictureBox control to be larger than the Panel Width and Height. The
Panel
> will display scrollbars to allow you to scroll around the image.
>
> --
> -----------------------------------
> Ken Varn
> Senior Software Engineer
> Diebold Inc.
>
> EmailID = varnk
> Domain = Diebold.com
> -----------------------------------
> "Steve McLellan" <sjm@fixerlabs.com.NOSPAM> wrote in message
> news:%23Y5SAlaEEHA.2768@tk2msftngp13.phx.gbl...
> > Hi,
> >
> > I'm sure this has been asked before but I can only find a couple of bits
> of
> > homemade code that cause flickering. I know there's no in built way of
> > getting a PictureBox to scroll the pic if the image is too big for it;
is
> > there a recommended (and fast) way of doing it?
> >
> > Thanks,
> >
> > Steve
> >
> >
>
>



Relevant Pages

  • Re: Setting Proportional Width of Bound GridView
    ... I'm afraid there is no way how to use proportional size and scrollbars ... If I set the Panel width explicitly, it all works OK, but then when I ... resize the browser window, the panel doesn't resize. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Problem positioning controls within a panel with autoscroll=true
    ... > I have a panel with autoscroll=true, and I am trying to position controls ... > bit after creating a few of these diagonal boxes, it jumps a huge gap, ... > whether or not the scrollbars have been moved at all. ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Re: Making Scrollbars Appear
    ... >>I have a KPanel class derived from JPanel. ... >>is written to the panel, its size grows until scrollbars are required. ... > Use revalidate() on your KPanel, ...
    (comp.lang.java.gui)
  • Problem positioning controls within a panel with autoscroll=true
    ... I have a panel with autoscroll=true, and I am trying to position controls ... int x = 0; ... bit after creating a few of these diagonal boxes, it jumps a huge gap, then ... whether or not the scrollbars have been moved at all. ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Scrollbars for Picturebox Controls
    ... This may sound like an elementary question but how do you implement ... scrollbars for the Picturebox control. ...
    (microsoft.public.dotnet.languages.vb)