Re: Scrollable PictureBox

From: Ken Varn (nospam)
Date: 03/24/04


Date: Wed, 24 Mar 2004 12:13:02 -0500

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: Resize panel image and maintain aspect ratio
    ... the panel, ... send the second picturebox to the back. ... Private ptbBreedte, ptbHoogte As Integer ... Private schaalH, schaalB, schaal As Double ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Transparent label over live video stream
    ... Image property of the PictureBox for each frame I capture. ... >> This software has a form with a panel which is the preview window. ...
    (microsoft.public.dotnet.framework.drawing)
  • PictureBox with scroll bar control
    ... yes folks that is progress! ... Someone in this ng suggested just drop your picturebox into a panel ... vertically so as to only have 1 scrollbar at a time. ...
    (microsoft.public.dotnet.languages.vb)
  • Scrollbar Question
    ... I have a form containing a panel and a picturebox inside the panel. ... The form load code changes the panel size to 400x400 and the picturebox size ... the bottom part of the vertical scrollbar on the right side of the ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Transparent Label
    ... the image won't stretch in a panel because there is no SizeMode property. ... > you're seeing the gray background of the Form, not the PictureBox. ... > B) Set the Parent of the Label to be the PictureBox. ...
    (microsoft.public.dotnet.framework.drawing)