Results 1 to 6 of 6

Thread: Picture

  1. #1

    Thread Starter
    Fanatic Member AccessShell's Avatar
    Join Date
    Oct 2013
    Posts
    790

    Question Picture

    Quite some time ago I wrote a program that included a PictureBox. In the IDE, entered the picture location and name in the Picture Property. How di I now get the path and name of that picture?

    Thanks

  2. #2
    PowerPoster
    Join Date
    Nov 2017
    Posts
    3,116

    Re: Picture

    As far as I know,the path to the image is not retained anywhere, the image is directly imported into the form and stored in the form's frx file.

    Short answer: You can't.

  3. #3
    PowerPoster
    Join Date
    Nov 2017
    Posts
    3,116

    Re: Picture

    I will note that you can manually store the path in the "Tag" property of the picturebox and then reference that tag property in code to get the path to the file.

  4. #4
    Hyperactive Member
    Join Date
    Jul 2020
    Posts
    370

    Re: Picture

    Probably the only way is to extract the image from the .frx and save it to disk. And then use it as conveniently.
    Utility address:
    https://web.archive.org/web/20150815...gfxfromfrx.zip

  5. #5

    Thread Starter
    Fanatic Member AccessShell's Avatar
    Join Date
    Oct 2013
    Posts
    790

    Re: Picture

    I though about doing what OptionBase1 suggested in post #3.

    If I had a lot of PBs, I thought about creating a dummy routine and just listing each picture box. This would be similar to using the LoadPicture statement in code. Or, just use the LoadPicture code.

  6. #6

    Thread Starter
    Fanatic Member AccessShell's Avatar
    Join Date
    Oct 2013
    Posts
    790

    Re: Picture

    But, of course, that doesn't help me now!

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