CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Guest

    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!


  2. #2
    Join Date
    Nov 1999
    Location
    California, USA
    Posts
    40

    Re: Name of file displayed in a picture or image box?

    sorry, i tried like text1 = picture1.name and stuff like that, sorry

    PanasonicSubz

  3. #3
    Join Date
    Sep 1999
    Location
    Red Wing, MN USA
    Posts
    312

    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]
    Aaron Young
    Senior Programmer Analyst (Red Wing Software)
    Certified AllExperts Expert

  4. #4
    Guest

    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
  •  





Click Here to Expand Forum to Full Width

Featured