I have a collection of picture boxes and to catch MouseHover event, I use this:
Private Sub Generic_MouseHover(ByVal sender As System.Object, ByVal e As System.EventArgs) _
Handles pic1.MouseHover, pic2.MouseHover, pic3.MouseHover, .....etc ... pic120.MouseHover
Dim control As PictureBox
control = CType(sender, PictureBox)
x = control.Location.X
y = control.Location.Y
I use ListBox to select a collection of dresses, so a particular PictureBox holds a different image every time. I store x and y as shown above, but how do I store the image information, namely its file name (xxxx.jpg) or the whole path?