The code given below generates an error. Conversion from string “C:…” to integer not valid.
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim path As String = Environment.GetFolderPath(Application.ExecutablePath) & "Images"
For Each fileName As String In path
ImageList1.Images.Add(Image.FromFile(fileName))
Next
End Sub
Environment.GetFolderPath Gets the path to the system special folder that is identified by the specified enumeration.
Application.ExecutablePath itself gives a path string. So use any one of them.