how can I make an animated gif or just a plain picture slowly move across the form

I would like to be able to make an animated gif or any picture file follow a path down the form in vb.net 2008 express any tips?
Dov_BAsked:
Who is Participating?
 
Mike TomlinsonConnect With a Mentor Middle School Assistant TeacherCommented:
Just drop a Timer on your Form and set its Interval property to what you want.  Then, in the Tick() event, change the Location() of your PictureBox:

    Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
        Dim pt As Point = PictureBox1.Location
        ' ..change "pt" somehow...
        pt.Offset(1, 1) ' diagonally down the form to the right
        PictureBox1.Location = pt
    End Sub
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.