November 3rd, 2009, 02:07 AM
calling files from resource folder
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"
Me.PictureBox1.Image = My.Resources.filePath
and its not working... can someone guide me?
Tags for this Thread
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.