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.
Printable View
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.
Your program is placing the picture there, right? If so why not record the file name when you add it?
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:
Picture1.Tag = "Name of picture and path goes here"
Bruce.
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. :D