I'd like to get the name of all the images from resources and store them in a ListBox. Should i loop through and declare it as array?
Asked
Active
Viewed 165 times
0
-
2http://stackoverflow.com/questions/598484/how-to-retrieve-image-from-resources-folder-of-the-project-in-c-sharp – Mohamad Alhamoud Jan 12 '12 at 18:34
-
Are you using winforms, WPF or Silverlight? – ΩmegaMan Jan 12 '12 at 19:01
-
i don't know WPF or Silverlight just plain visual c# 2008 – Ozarraga_AB Jan 12 '12 at 19:08
-
i really don't have a code yet. but i think the logic was like this >int x = 0; >pictureBox1.Image = (Bitmap)Properties.Resources.ResourceManager.GetObject(x); – Ozarraga_AB Jan 12 '12 at 19:12
1 Answers
0

Catalin Serafimescu
- 369
- 1
- 5
-
is it possible to call its index number(if it has one)? (i don't know how to call it since i am new to this stuff) – Ozarraga_AB Jan 12 '12 at 19:29
-
Have you read the documentation ? It returns an array, so yes, you can use indexers. But, from what you post, I think this is way over your knowledge at this point (no pun intended). Try to learn first the technology, the language, etc... – Catalin Serafimescu Jan 12 '12 at 21:07