hi,everyone i need help about simple code to move the picture in form
simply animation of the picture.
thanks

Recommended Answers

All 2 Replies

See if this helps.
1 PictureBox, 2 Buttons

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        PictureBox1.Top += 5
        PictureBox1.Left += 5
    End Sub
    Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
        PictureBox1.Top -= 5
        PictureBox1.Left -= 5
    End Sub

do like codeorder codes..and add timer to make it moving like an animation.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.