Find the path of a image in image box

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Pawan1994
    New Member
    • Aug 2007
    • 1

    Find the path of a image in image box

    Hi
    I have a imagebox & i don't know the path of the image in the image box. Can anyone tell me how find the path. which property tell the path of a image

    Thanks
    pawan sharma
  • VBPhilly
    New Member
    • Aug 2007
    • 95

    #2
    You may be out of luck, I think:

    When assigned through the IDE (the VB6 environment) and SAVED, the picture is actually embedded in an .FRX file (binary resource file). As far as I know, it does not save the path to the image afterwards.

    Was this what you meant?

    Comment

    • Killer42
      Recognized Expert Expert
      • Oct 2006
      • 8429

      #3
      Even when a picture is loaded into the control at runtime, it's just a picture. I don't think Windows cares whether it was previously held in a file. There doesn't seem to be any real link between them.

      What you could do is store the path and name of the file in the control's Tag property when you load the image. But otherwise I don't think there's any easy way to trace back.

      Comment

      Working...