Reposition tif file

R

Ron Dahl

I am able to load a large tif file into a picturebox and view it with
scrollbars.

It always shows the top left portion of the tif file.

I want it to show the lower right portion of the tif file and for the
horizontal scroll bar to be all the way to the right and the vertical scroll
bar to be all the way to the bottom.

Then from there the user can gradually scroll up and left.

How should I do this?

I am currently using a PictureBox, but I will gladly change to whatever
works.

Thanks in advance for any help.

Ron Dahl
 
H

Herfried K. Wagner [MVP]

Ron,

Ron Dahl said:
I am able to load a large tif file into a picturebox and view it with
scrollbars.

It always shows the top left portion of the tif file.

I want it to show the lower right portion of the tif file and for the
horizontal scroll bar to be all the way to the right and the vertical
scroll bar to be all the way to the bottom.

Then from there the user can gradually scroll up and left.

A simple solution would be placing the picturebox inside a panel with
'AutoScroll' turned on. You can use the scrollable control's
'AutoScrollPosition' property to scroll to a certain position.
 
R

Ron Dahl

I think that's the solution I'm looking for. It may take me a few days to
implement it, but I think it's going to work.
Thanks again
Ron
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top