Click to See Complete Forum and Search --> : Name of file displayed in a picture or image box?
December 20th, 1999, 01:58 PM
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!
PanasonicSubz
December 20th, 1999, 02:26 PM
sorry, i tried like text1 = picture1.name and stuff like that, sorry
PanasonicSubz
Aaron Young
December 20th, 1999, 03:28 PM
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
adyoung@win.bright.net
aarony@redwingsoftware.com
December 23rd, 1999, 11:00 AM
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!
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.