G
garfitz
Why does the following produce a "Managed
NullReferenceException" when the listview shows that there
are multiple items ?
Messagebox.Show(lstView.items.count) ' Shows value of 1
If lstView.Items.Count > 0 Then
lstView.Items.Clear() ' error occurs when executing
this stmt
End If
NullReferenceException" when the listview shows that there
are multiple items ?
Messagebox.Show(lstView.items.count) ' Shows value of 1
If lstView.Items.Count > 0 Then
lstView.Items.Clear() ' error occurs when executing
this stmt
End If