I’m trying to save a setting that keeps what background image I’m currently using.
If it’s an external file, there is no problem, i can just get the .location and set it in a String setting to store it.
But, if I want to store an image resource as a setting, how do i do it?
I know i can store rawdata, like bitmap information, but then i can’t set that type of data to the my.background.
I don’t know if the question should be: “how do i reference resources”, but the my.resources.resource.methodsList doesnt contain anything that seems to be of use.
You can use
My.Resources.ResourceManager.GetObject("resource name")to read a resource by string. Here’s some example code that shows you how to get a list of all the embedded images from the resources which includes both their string name and the image object itself: