[Solved]ListView

Posts 1–6 of 6 · Page 1 of 1
[Solved]ListView
Hey guys,
I've always had trouble with use ListViews.

Could anyone tell me How to properly add columns to a ListView and/or how to use it?
send me tv data via msn I'll help you
[php]Dim str(2) As String' Change 2 to the number of columns
Dim itm As ListViewItem
str(0) = "column 1"
str(1) = "column 2"
itm = New ListViewItem(str)
ListView1.Items.Add(itm)[/php]
Quote Originally Posted by Zoom View Post
[php]Dim str(2) As String' Change 2 to the number of columns
Dim itm As ListViewItem
str(0) = "column 1"
str(1) = "column 2"
itm = New ListViewItem(str)
ListView1.Items.Add(itm)[/php]
isnt that adding items instead of columns? as you are using listviewitem object too :x
Blubb solved by TV. Mark Solved please.
Edit: How do i add multiple items to a listview from a SINGLE textfile?
how does that text file look like, post a sample code for that textfile...


streamreader + readline will most likely do the job.
Posts 1–6 of 6 · Page 1 of 1
This thread is closed for replies.

Tags for this Thread

None

Need help?