ListView
Hey,
I'v bin working on a program but now i have a problem i have 4 (head)items that CAN be deleted and i want that they CANNOT be deleted. I'v bin search google ect but nothing can be found:
Code Snippet
If ListView1.ListItems(1).Selected = True Then
MsgBox("Cannot Be Deleted", MsgBoxStyle.Critical)
End If
dosent work either,
It's about Item: 0,1,2,3
Second Question,
I want to add a subitem into my program trow a button.
I can add a headitem into my listview but subitems not.
for the headitem i have:
Code Snippet
Me.ListView1.Items.Add(Button1.Text &"")
And if i do:
Code Snippet
Me.ListView1.SubItems.Add(Button2.Text &"")
Then i get a error: 'SubItems' is not a member of 'System.Windows.Forms.ListView'.
I'm Working in Microsoft Visual Basic 2008 Express

