Advertisement

05.21.2008 at 05:26AM PDT, ID: 23420496
[x]
Attachment Details

Collection of picture boxes; how to store image information?

Asked by Fero45 in Microsoft Visual Basic.Net

Tags: ,

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?

Thanks

FeroStart Free Trial
[+][-]05.21.2008 at 06:27AM PDT, ID: 21614767

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Microsoft Visual Basic.Net
Tags: VB.NET, 2008
Sign Up Now!
Solution Provided By: Idle_Mind
Participating Experts: 2
Solution Grade: A
 
 
[+][-]05.21.2008 at 06:39AM PDT, ID: 21614891

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.21.2008 at 06:41AM PDT, ID: 21614902

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.21.2008 at 06:47AM PDT, ID: 21614968

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.21.2008 at 06:50AM PDT, ID: 21615002

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.21.2008 at 06:53AM PDT, ID: 21615040

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.21.2008 at 09:07AM PDT, ID: 21616468

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628