Name of file displayed in a picture or image box?
Using VB5, I'm trying to determine, during run time, the name of the file currently displayed in a picture or image box. The "object.picture" property doesn't actually return a file name. Any suggestions on how to grab this information? Your input is certainly appreciated!
Re: Name of file displayed in a picture or image box?
sorry, i tried like text1 = picture1.name and stuff like that, sorry
PanasonicSubz
Re: Name of file displayed in a picture or image box?
It makes sense that it wouldn't include a File Path/Name as when the Project is compiled the Image is Embedded within the EXE, so no external File is Needed.
Aaron Young
Analyst Programmer
[email protected]
[email protected]
Re: Name of file displayed in a picture or image box?
Thank you very much for providing this useful information. What I was trying to do was change the image based on the one currently displayed, but given the information you provided I have determined a valid work around.
I will store the file name as a string in the Tag property of the object and then evaluate that property to determine which image to display next.
I could've spent a week of frustrating research trying to figure this one out (as it is I spent a day and a half before posting...) Thanks again for your help!