错误代码:For Each f As String In io.Directory.GetFiles(ProjectPath & "images\icons\") --------------------------- 确定 --------------------------- For Each f As String In io.Directory.GetFiles(ProjectPath & "images\icons\") Dim ifo As New FileInfo(f) Public Ifo.Extension.Replace(".","") As Image=GetImage(f) Next