Scroll an image.

  • Thread starter Thread starter Mr. Magic
  • Start date Start date
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.
 
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.
 
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.
 
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.
 
Back
Top