Originally posted by CyberHawke
simple,

VB Code:
  1. Dim sbMessage As System.Text.StringBuilder
  2. Dim liTemp As ListViewItem
  3. If lstParts.SelectedItems.Count > 0 Then
  4.     sbMessage.Append("You chose the following items").Append(vbCrLf)
  5.     For Each liTemp In lstParts.Items
  6.          If liTemp.Selected = True Then sbMessage.Append(liTemp.Text).Append(vbCrLf)
  7.     Next
  8.     MessageBox.Show(sbMessage.ToString)
  9. Else
  10.     MessageBox.Show("Show some other message")
  11. End If

Hope this helps
Didn't work out right! The first part did, but when I select items I end up with an error.

An unhandled exception of type 'System.NullReferenceException' occurred in WindowsApplication1.exe

Additional information: Object reference not set to an instance of an object.