By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,738 Members | 1,337 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,738 IT Pros & Developers. It's quick & easy.

Reposition tif file

P: n/a
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
Nov 21 '05 #1
Share this Question
Share on Google+
2 Replies

P: n/a
Ron,

"Ron Dahl" <rd***@ghp.com> schrieb:
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.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #2

P: n/a
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


"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:ey**************@tk2msftngp13.phx.gbl...
Ron,

"Ron Dahl" <rd***@ghp.com> schrieb:
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.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.