tuxp3
04-19-2004, 08:11 PM
curip(curnum).Text = curnum
curping(curnum).Text = "sljhf" ' random text to test with
curip(curnum).SubItems.Add(curping(curnum))
Dim Line As Integer
Line = listv.Items.Count
listv.Items.Insert(Line, curip(curnum))
listv is my listview
i try this but i get this error when i run the program
An unhandled exception of type 'System.NullReferenceException' occurred in PROJECT1.exe
Additional information: Object reference not set to an instance of an object.
and it highlights the first line,
any help on using multiple columns in ListView?
Thanks,
Andrew
curping(curnum).Text = "sljhf" ' random text to test with
curip(curnum).SubItems.Add(curping(curnum))
Dim Line As Integer
Line = listv.Items.Count
listv.Items.Insert(Line, curip(curnum))
listv is my listview
i try this but i get this error when i run the program
An unhandled exception of type 'System.NullReferenceException' occurred in PROJECT1.exe
Additional information: Object reference not set to an instance of an object.
and it highlights the first line,
any help on using multiple columns in ListView?
Thanks,
Andrew