I have a WinForms project and added multiple images to the resources (project properties -> Resources). Now I have a Form1.cs, a UserControl1.cs with a .resx files, and using Assembly.GetManifestResourceNames()
, it contains 3 strings namely:
1 TestApplication1.Properties.Resources.resources, 2 TestApplication1.Form1.resources 3 TestApplication1.UserControl1.resources
What I need to get now is obviously the files from #1 which contains the images I need to get. What I need to do is have a list that I can access these images through their indexes. I can access this files individually with no problem, but I have 72 images so I need them as a list. So my question is, how do I get these images in #1 as a list?
EDIT:
Is there no other way as to create a list and add all of my 72 images to it? Or is there some way that I can get all of these images from the resources as a list? Also, I don't want to resort to using System.IO
as I will build this application as a Class Library.