I’m using a BindingList bound to a checkedListBox which contains FileInfo objects.
I want to load an image into a PictureBox when the checkedListBox_SelectedIndexChanged event is fired, since each FileInfo object represents an image file.
My problem is that I can’t figure out how to access the FullName property of a FileInfo object from the object selected in the checkedLisBox.
Any help will be appreciated 🙂
Thanks!
You need to cast the selected object to FileInfo: