juggernot Well-known member Joined Sep 28, 2006 Messages 173 Programming Experience Beginner Apr 5, 2007 #1 I have added pictureboxes to a form through an array. Now I want to detect when the user clicks on one of these pictureboxes. How would I do this?
I have added pictureboxes to a form through an array. Now I want to detect when the user clicks on one of these pictureboxes. How would I do this?
JohnH VB.NET Forum Moderator Staff member Joined Dec 17, 2005 Messages 15,799 Location Norway Programming Experience 10+ Apr 5, 2007 #2 AddHandler pb.Click, AddressOf pb_Click 'where pb is the control reference and pb_Click is the sub method handling the event. Upvote 0 Downvote
AddHandler pb.Click, AddressOf pb_Click 'where pb is the control reference and pb_Click is the sub method handling the event.