Hassell, this is easy enough to do.
FORM SETUP: Start a new project and put a PictureBox and Timer control on
the Form, and set the Timer's interval to 1.
THE CODE: In the Form's Load event, set the PictureBox's Left property to
the negative value of the PictureBox's Width. Next in the Timer's Timer
event(Timers only event) you want to use an If_Then_Else loop, to check if
the PictureBox's Left property is less than the Form's Width property. If it
is then add 10 to the PictureBox's Left property, Else set the PictureBox's
Left property to the negative value of the PictureBox's Width.
To make the PictureBox speed up, change the 10 in the Timer's Timer event to
20 then 30 and so fourth.
If you need help with the Syntax, look up the word in Help. Put the cursor
on a word like "If" and press the F1 key, and Help will go directly to that
topic
Give it a try. If you did exactly what I said above you should have no
problems.
Quote:
>I need some help writing the code for a simple program. The program
consists of
>a picture box and timer and should run continuously at runtime from the
left of
>a maximized form, to the right of the form and appear from the left in a
>continuous cycle. I am new at this and would be grateful for any help.
Please