troubleshooting Question

Collection of picture boxes; how to store image information?

Avatar of Fero45
Fero45 asked on
Visual Basic.NET
8 Comments1 Solution764 ViewsLast Modified:
Hi experts

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

End Sub

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?


Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 8 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 8 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros