• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 202
  • Last Modified:

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?
0
Dov_B
Asked:
Dov_B
1 Solution
 
Mike TomlinsonMiddle 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

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now