I have several images in Resources part of a project. Each image is called img_1.png, img_2.png, img_3.png, etc
I have a pictureBox and depending of the value of an index I would like to display a different picture. If index=1, then display img_1.png, etc
Is there a way to access content of Resources with a variable. Something like the following code (which doesn't work)
myPictureBox.Image = myProject.Properties.Resources.img_ + index.ToString() + ".png";