Archived

This topic is now archived and is closed to further replies.

Scrolling an Image in C#

This topic is 5308 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I am currently trying to write a small application using C#. Since I would like to display quite large images on my form I need to know: 1) Which control I have to use to display the image 2) How to add scrollbars to it 3) How to scroll the Image.

Share this post


Link to post
Share on other sites
Apologies for posting a "i dunno but.."

It may be that you need to make a new control that is a scrollable frame that holds a picture box. That is how I would do it using Swing, Qt, VB6, and Tk.

I don't use .Net though.

[edited by - flangazor on May 29, 2003 10:51:38 AM]

Share this post


Link to post
Share on other sites
Guest Anonymous Poster

duh... set the SizeMode Property to what you want it to be like... stretching, autosize, whatever.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Another way is to put a Panel on the form, and set its autoscroll property to true, then put the picture box inside the panel and make the picture box as big as you want, and that should let you scroll around it if its size is set to bigger than the size of the Panel

Share this post


Link to post
Share on other sites