hi im trying to load the first jpg from a folder and here's my code but I m getting error on the last line. Can someone pls correct me? ths


Dim Imagespath() As String = System.IO.Directory.GetFiles("C:\Underline_pics" & ("*.jpg"))
' Dim imagesindexes as New List(Of Integer)
frontpic.Image = Image.FromFile(Imagespath.IndexOf(0))