Change FileInfo to string in your other procedure too..

Items in a listbox aren't of type FileInfo.