Solved

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

Posted on 2009-05-14
1
189 Views
Last Modified: 2012-05-07
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
Comment
Question by:Dov_B
1 Comment
 
LVL 85

Accepted Solution

by:
Mike Tomlinson earned 500 total points
ID: 24388636
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

ScreenConnect 6.0 Free Trial

Want empowering updates? You're in the right place! Discover new features in ScreenConnect 6.0, based on partner feedback, to keep you business operating smoothly and optimally (the way it should be). Explore all of the extras and enhancements for yourself!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question