On timer

  • Thread starter Thread starter jean.ulrich
  • Start date Start date
J

jean.ulrich

Hi

I couple of years ago I made something and I don't remember how

I have a form and I have insert an image on the form. (white background
form, pictire is a truck with a white background)

What I did before is that I have use the "on timer" of the form to move
the picture

Let say [picture].left = 1800

then [picture].left = 1600

[picture].left = 1600 and so on

So I could see the truck moving on the form from the right to the left

I don't remember if I was using select case or something else

Somebody can help me ?

thanks
 
What about:

If Me.[picture].Left >= 200 Then
Me.[picture].Left = Me.[picture].Left - 200
Else
Me.TimerInterval = 0
End If
 

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

Back
Top