|
-
Jun 21st, 2004, 11:10 AM
#6
Thread Starter
Addicted Member
Originally posted by CyberHawke
simple,
VB Code:
Dim sbMessage As System.Text.StringBuilder
Dim liTemp As ListViewItem
If lstParts.SelectedItems.Count > 0 Then
sbMessage.Append("You chose the following items").Append(vbCrLf)
For Each liTemp In lstParts.Items
If liTemp.Selected = True Then sbMessage.Append(liTemp.Text).Append(vbCrLf)
Next
MessageBox.Show(sbMessage.ToString)
Else
MessageBox.Show("Show some other message")
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|