I don't know how to implement this. I tried several times. but the button was only visible if the picturebox is already in the width of the frm(Me.WIdth)
Public Class Form1
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
Static XInteger As Integer = PictureBox1.Left
Static YInteger As Integer = PictureBox1.Top
Static WidthInteger As Integer = PictureBox1.Width
Static HeightInteger As Integer = PictureBox1.Height
XInteger -= 10
If XInteger <= -PictureBox1.Width Then
XInteger = Me.Width
End If
PictureBox1.SetBounds(XInteger, YInteger, WidthInteger, HeightInteger)
if
'button should be invisible if the picture is in the ending point of the button
button1.Visible=false
End Sub
End Class