HI i need some help in using a picturebox to call pictures out of the resource folder and loop it

previously i have coded:


Me.PictureBox1.Image = Image.FromFile(Application.StartupPath + "\\JPG LandoltC\" + filePath + ".jpg")


where filePath is the function to locate the name of the pictures







but now i have to put everything into the .exe to make it more "sightly"


so now
i'm trying

Me.PictureBox1.Image = My.Resources.filePath

and its not working... can someone guide me?