2
Contributors
1
Reply
2
Views
7 Years
Discussion Span
Last Post by codeorder
0

See if this helps.
1 Button, 1 PictureBox

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

To change direction of movement, use .Left -= 5 , etc..

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.