Results 1 to 4 of 4

Thread: check what picture is in picture box

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2002
    Location
    Utah
    Posts
    397

    check what picture is in picture box

    ive searched around and have found nothing, so heres my question. how can i find the name of the picture in a picture box?

    like i what to find the filename of the picture with the file extention.

  2. #2

  3. #3
    INXSIVE Bruce Fox's Avatar
    Join Date
    Sep 2001
    Location
    Melbourne, Australia
    Posts
    7,429
    As Marty stated, if you (tru code) are loading the Picture, just place the required data in the .Tag property of the Picture control and change it as required.

    Like:
    VB Code:
    1. Picture1.Tag = "Name of picture and path goes here"



    Bruce.

  4. #4
    Ex-Super Mod'rater Electroman's Avatar
    Join Date
    Sep 2000
    Location
    Newcastle, England
    Posts
    4,349
    Apart from the way Marty said there is no other way becuase not every Image in a picturebox needs to have a file associated with it. You could generate a picture and put in there and then finding out the filename wouldn't make any sense.
    When your thread has been resolved please edit the original post in the thread ()
    and amend "-[RESOLVED]-" to the end of the title and change the icon to , Thank you.

    When posting Code use the [VBCode]Code Here[/VBCode] tags to be able to use the code highlighting.

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