Scroll an image.

M

Mr. Magic

I have a windows program that will need to display a large jpg file that run
unattended. I would like to load the picture showing only part of it and
then scroll it (through code not through user intervention) down.

The only way I've come up with so far would be to create a html page and
then use a marquee tag to scroll the image.

Anybody have any better thoughts.

TIA - Jeff.
 
J

Jeff Johnson

I have a windows program that will need to display a large jpg file that
run unattended. I would like to load the picture showing only part of it
and then scroll it (through code not through user intervention) down.

The only way I've come up with so far would be to create a html page and
then use a marquee tag to scroll the image.

Anybody have any better thoughts.

Put the image in an autoscroll panel and then update the scroll position via
a timer.
 
A

Alberto Poblacion

Mr. Magic said:
I have a windows program that will need to display a large jpg file that
run unattended. I would like to load the picture showing only part of it
and then scroll it (through code not through user intervention) down.

The only way I've come up with so far would be to create a html page and
then use a marquee tag to scroll the image.

Put the image in a PictureBox, and the PictureBox inside a (amaller)
Panel. Then use a Timer to change the Left property of the PictureBox (it
can be a negative number) so that it "moves" inside the Panel and thus
displays a diferent part of the image.
 
M

Mr. Magic

Thanks. That worked great.

Alberto Poblacion said:
Put the image in a PictureBox, and the PictureBox inside a (amaller)
Panel. Then use a Timer to change the Left property of the PictureBox (it
can be a negative number) so that it "moves" inside the Panel and thus
displays a diferent part of the image.
 

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