Lanc1988 Posted November 28, 2003 Posted November 28, 2003 I have an image that is to big to fit on the program, so I want to use the horizontal and vertical scroll bars to navigate around the image. I have visual basic.net 2003 and I used the toolbox to place the image and the two scroll bars on the image. Now i just need the code for the scroll bars to actually work with the image. Thanks. Quote
*Gurus* Derek Stone Posted November 30, 2003 *Gurus* Posted November 30, 2003 Put the image in a container and adjust the image's location depending on the values of the scrollbars. Quote Posting Guidelines
Lanc1988 Posted November 30, 2003 Author Posted November 30, 2003 A container? Where do I find that, is it in the toolbox? Quote
*Gurus* Derek Stone Posted November 30, 2003 *Gurus* Posted November 30, 2003 Add a Panel to the form Add a PictureBox to the Panel (drag-and-drop onto the Panel) Load an image into the PictureBox Set the location of the PictureBox to the coordinates (0, 0) Set the AutoScroll property of the panel to true Quote Posting Guidelines
Lanc1988 Posted November 30, 2003 Author Posted November 30, 2003 It still won't scroll, the scrollbars go outside the panel, right? Or do you even add scrollbars? Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.