---------------------------
错误
---------------------------
编译错误:语句不能出现在方法体外。
错误代码: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