questions regarding PictureBox

ccabanero
01-27-2004, 11:29 AM
Hello,

I finally upgraded to vb.net and have a few questions about the PictureBox control.

Question 1:
Is there a way to embed an image into a form so that it shows only part of the image (because the picture box is smaller than the image and not displayed as stretched) and thus, will allow the user to user scroll bars to navigate the image.

I basically want the user to scrutinize a high level of detail of a large image - so I want them to be "zoomed in".

Question 2:
Is there some way to create navigation controls (up, down, right, left) to allow the person to move through an image in a PictureBox.

If anyone has any other strategies to perform the above please chime in.

Thanks everyone

Ruffnekk
03-15-2005, 02:42 AM
Simply make a picturebox inside another picturebox. The 'outside' picturebox is empty, the 'inside' picturebox has the image and is as large as the total image. Now move the the 'inside' picturebox around (change it's location) to make it look like you are scrolling the image in the 'outside' picturebox. See what I mean? (You can set a location to be negative!)

Greets, Ruffnekk

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum