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
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
thanks a lot
Did you get it all figured it out?...
Let me know if you need a concrete example of this. =)
Let me know if you need a concrete example of this. =)
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...