473,402 Members | 2,050 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,402 software developers and data experts.

Reposition tif file

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
2 976
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: matt | last post by:
I have compiled some code, some written by me, some compiled from various sources online, and basically i've got a very simple flat file photo gallery. An upload form, to upload the photos and give...
5
by: Dave Smithz | last post by:
Hi There, I have a PHP script that sends an email with attachment and works great when provided the path to the file to send. However this file needs to be on the same server as the script. ...
7
by: Joseph | last post by:
Hi, I'm having bit of questions on recursive pointer. I have following code that supports upto 8K files but when i do a file like 12K i get a segment fault. I Know it is in this line of code. ...
2
by: Buddy | last post by:
Hello, Can someone point me to some example code that shows how to paint the text in a button control. I basically want to reposition the text so it does not wrap.
3
by: StGo | last post by:
How can i read/write file's custom attributs(like subject,author...) in C#??? Thanks :))
2
by: Garibaldi | last post by:
Thanks to all... I need to read a block of text, operate on the read text then move to the next text block and so on and so on from a 650MB file. Pseudo code would be something like this: ...
5
by: ukrbend | last post by:
I'm trying to create a link to a certain part of a page on another website that has no anchor (i.e. ID or name) at the position on the page I want to link to. So I can't do something like ...
3
by: Lee | last post by:
Hello, I am trying to reposition a calendar control at runtime i.e next to the approriate button which was clicked. Without the code below, the control appears in the same position but on top...
0
by: ChuckMac | last post by:
I have text fields with a matching search button, that get search information keyed in a field then the search button (for that text item) is pressed which caused a database search to take place. The...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.