The type or namespace name 'ListItem' could not be found (are you
missing a using directive or an assembly reference?)
System.Windows.Forms has a ListViewItem class, but not a ListItem class. The
list box's Items collection (a ListBox.ObjectCollection instance) holds
objects, not a strongly-typed class.
Like the other posters have said, it looks like you're mixing up a couple of
different project types. A standard "WinForms project" will not have a
ListItem class.