I got a neaty tricky situation here..
I have a picturebox1 and listbox1
and a few items in listbox1.
I got images in resources.resx (bmp) and want to load different images depending on what index is selected..
I wanted for it to be something like this..
Bitmap bmp = Properties.Resources.Image_ + listBox1.SelectedIndex; pictureBox1.Image = bmp;
as my images are named Image_0, Image_1, Image_2 and so on..
I wanted the number of the index to get to the Image_* so that I don't have to rewrite the code for each image.. how can I do that?