I have tried a few methods to obtain a name including investigating PropertyItems
and the old fashioned ToString()
method to try to obtain the name of an image resource as a string.
I have a selection of images, named, in a resources file. I have no issue getting the image to display using resource.imageName
. I would like to try to get imageName
as a string to reduce errors and typos elsewhere in my code.
using resource.imageName.ToString()
provides me with the string System.Drawing.Bitmap