Ciao,
ho dato una ricontrollata,il codice funziona,però,ora come faccio a rendere queste picturebox trascinabili?
l'errore me lo da sull'handles (non riconosce PB che ho dichiarato nella classe)
codice:
Private Sub PB_MouseMove(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles PB.MouseMove
If e.Button = Windows.Forms.MouseButtons.Left Then
'posizione del cursore rispetto al form
Dim newLocation As Point = PointToClient(Cursor.Position)
'coordinate dell'angolo superiore sinistro
newLocation.Offset(-cursorOffset.X, -cursorOffset.Y)
PB.Location = New Point(newLocation.X, newLocation.Y)
End If
End Sub