You can add an event handler at runtime to handle the click event.And then in your code for adding a new picture you can write AddHandler statementVB Code:
Private Sub CustomPic_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) 'your code for handling the event End Sub.VB Code:
Dim newpic As New PictureBox AddHandler newpic.Click, AddressOf CustomPic_Click
Take a look at AddHandler in your MSDN




Reply With Quote