V
vb newbie
I found some sample VB code which I'm trying to implement in Visual
Studio 2005. I think the code was VB6. VS05 doesn't like the syntax.
I've distilled things down to the part with the error:
Public Sub WontRun(ByVal v As ListView)
Dim x As ListItem
x = v.ListItems.Add(, , "c:\test\file.txt")
End Sub
Error 1 'ListItems' is not a member of
'System.Windows.Forms.ListView'.
Does anybody know what the correct code would be for this under Visual
Studio 2005/VB?
Studio 2005. I think the code was VB6. VS05 doesn't like the syntax.
I've distilled things down to the part with the error:
Public Sub WontRun(ByVal v As ListView)
Dim x As ListItem
x = v.ListItems.Add(, , "c:\test\file.txt")
End Sub
Error 1 'ListItems' is not a member of
'System.Windows.Forms.ListView'.
Does anybody know what the correct code would be for this under Visual
Studio 2005/VB?