-
Jul 17th, 2021, 02:09 PM
#1
Thread Starter
Fanatic Member
Picture
Quite some time ago I wrote a program that included a PictureBox. In the IDE, entered the picture location and name in the Picture Property. How di I now get the path and name of that picture?
Thanks
-
Jul 17th, 2021, 02:20 PM
#2
Re: Picture
As far as I know,the path to the image is not retained anywhere, the image is directly imported into the form and stored in the form's frx file.
Short answer: You can't.
-
Jul 17th, 2021, 02:25 PM
#3
Re: Picture
I will note that you can manually store the path in the "Tag" property of the picturebox and then reference that tag property in code to get the path to the file.
-
Jul 17th, 2021, 02:48 PM
#4
Hyperactive Member
Re: Picture
Probably the only way is to extract the image from the .frx and save it to disk. And then use it as conveniently.
Utility address:
https://web.archive.org/web/20150815...gfxfromfrx.zip
-
Jul 17th, 2021, 03:40 PM
#5
Thread Starter
Fanatic Member
Re: Picture
I though about doing what OptionBase1 suggested in post #3.
If I had a lot of PBs, I thought about creating a dummy routine and just listing each picture box. This would be similar to using the LoadPicture statement in code. Or, just use the LoadPicture code.
-
Jul 17th, 2021, 03:41 PM
#6
Thread Starter
Fanatic Member
Re: Picture
But, of course, that doesn't help me now!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|