Image Path From Image List
-
Hi, ImageList is only used to store images. It does not have the option to return the actual path of the images. Regards, Allen
Allen Smith ComponentOne LLC www.componentone.com
-
Hi, ImageList is only used to store images. It does not have the option to return the actual path of the images. Regards, Allen
Allen Smith ComponentOne LLC www.componentone.com
Correct. One option to circumvent this problem might be to add the file path of the image into the
Tag
property of theImage
instance, something like:Image someImage = Image.FromFile(filepath);
someImage.Tag = filepath;imageList.Add(someImage);
This might cause problems though when the user renames/deletes/moves the actual image while the application is running. But this could be handled using a
FileSystemWatcher
to react to these actions. regards -
Correct. One option to circumvent this problem might be to add the file path of the image into the
Tag
property of theImage
instance, something like:Image someImage = Image.FromFile(filepath);
someImage.Tag = filepath;imageList.Add(someImage);
This might cause problems though when the user renames/deletes/moves the actual image while the application is running. But this could be handled using a
FileSystemWatcher
to react to these actions. regards -
path??? there is none. Are you thinking of uploading pictures to a database? search here int the articles, there is plenty of info. Good luck :-\