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


Visual Basic.NET

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

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
SOLUTION
Avatar of Cem Türk
Cem Türk
Flag of Türkiye image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
Avatar of Mike Tomlinson
Mike Tomlinson
Flag of United States of America image

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
Avatar of Mike Tomlinson
Mike Tomlinson
Flag of United States of America image

Did you get it all figured it out?...

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

Visual Basic .NET (VB.NET) is an object-oriented programming language implemented on the .NET framework, but also supported on other platforms such as Mono and Silverlight. Microsoft launched VB.NET as the successor to the Visual Basic language. Though it is similar in syntax to Visual Basic pre-2002, it is not the same technology,

96K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo