Link to home
Start Free TrialLog in
Avatar of tariqanis
tariqanis

asked on

How to access the name of a pictureBox image

Hi,

I have two rows of pictureBoxes, the top row is empty while the bottom row contains images loaded at design time.
The application allows the user to drag images from pictureBoxes in the bottom row and drop them into any of the pictureBoxes in the top row.
When the user is finished he clicks a button named btnEnter.
In the click event of this button I need to place code which retrieves the name of each image in each of the top row of PictureBoxes.
Is thsi possible.....?
Thank you


ASKER CERTIFIED SOLUTION
Avatar of Mike Tomlinson
Mike Tomlinson
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Lol...he's already storing a "backup" copy of the Image in the Tag() Property so he can restore the PictureBoxes to their "original state".  Take a look thru his PAQs....   =)

tariganis...you can store ANYTHING in the Tag() Property.  I suggest you create a simple Class to hold both the Name and Image in it.  Then you can place that in the Tag() Property so you have access to both pieces of information...
Avatar of tariqanis
tariqanis

ASKER

thanks a lot
Did you get it all figured it out?...

Let me know if you need a concrete example of this.  =)