dans ce cas, j'ai une autre solution.
'ton tableau de picture
Private myPict(2) As PictureBox
'la creation des vignettes
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) HandlesMyBase.Load
myPict(1) = New PictureBox
myPict(1).Location = New System.Drawing.Point(100, 100)
myPict(1).ImageLocation = "c:\image1.jpg"
Me.Controls.Add(myPict(1))
AddHandler myPict(1).Click, AddressOf BoutonClique
myPict(2) = New PictureBox
myPict(2).Location = New System.Drawing.Point(200, 200)
myPict(2).ImageLocation = "c:\image2.jpg"
Me.Controls.Add(myPict(2))
AddHandler myPict(2).Click, AddressOf BoutonClique
End Sub
'et la fonction qui attrape l'event
Private Sub BoutonClique(ByVal sender AsObject, ByVal e As EventArgs)
If sender Is myPict(1) Then
Console.WriteLine("myPict(1)")
ElseIf sender Is myPict(2) Then
Console.WriteLine("myPict(2)")
End If
End Sub
Meldur