|
-
December 20th, 1999, 02:58 PM
#1
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!
-
December 20th, 1999, 03:26 PM
#2
Re: Name of file displayed in a picture or image box?
sorry, i tried like text1 = picture1.name and stuff like that, sorry
PanasonicSubz
-
December 20th, 1999, 04:28 PM
#3
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]
-
December 23rd, 1999, 12:00 PM
#4
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!
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
|