Hi, Operating on the names of variables is not possible in general; you can use reflection to operate on the members (data fields, properties, methods, ...) of an object. But that is somewhat advanced stuff, and not necessary for what you need. I understand you will get the paths one by one from somewhere (app.config), and want to perform some operations on them; hence I suggest you collect them in a Collection, probably a List< string> is appropriate. You might first check the file existence, and only then insert the path name in the list. Or you could insert the images themselves in the list; that would take more memory, but might better suits your needs. Or you could create a little class that describes an image, holding its path name, its image (initially null, until it is required, hence acting like a cache), and possibly some metadata. :)
Luc Pattyn [Forum Guidelines] [My Articles]
Love, happiness and fewer bugs for 2009!