listview

  • Thread starter Thread starter Supra
  • Start date Start date
S

Supra

how do i string into subitems. i have 3 headers ..................that
fine......... i am doing irc chat similar to mirc. it is list command
from server sending list.
i know how to do pasrse lists................that fine.

Amsterdam.NL.EU.undernet.org 322 djanjo #luv_me_luv_u 1 :Love is in the
air! ! !
Amsterdam.NL.EU.undernet.org 322 djanjo #wetv 1 :GEDZAC
Amsterdam.NL.EU.undernet.org 322 djanjo #CIass 1 :Undernet User-Com's
#Class Project ||| /msg Teacher timeclass |||
www.user-com.undernet.org/class Enjoy :)'


in class project:
Case "322" 'Lists
Dim frml As New frmLvwLists
frml.AddLists(C(3), C(4), C(5))
Debug.WriteLine("list : " & C(3) & " " & C(4) &
" " & C(5))

if form project:
Public Sub AddLists(ByVal szChannel As String, ByVal szUsers As String,
ByVal szTopic As String)

Dim lvi As ListViewItem = lvwList.Items.Add(szChannel)
lvi.SubItems.Add(szUsers)
lvi.SubItems.Add(szTopic)
Debug.WriteLine("AddList :" & szChannel & " " & szUsers & " " &
szTopic) ===> i can see in debug. how do i get string into
listview.subitems?

regards,?
end sub
 
Dim lvi As ListViewItem(szChannel)
lvi.SubItems.Add(szUsers)
lvi.SubItems.Add(szTopic)
lvwList.Items.Add(lvi)
 
i added last one

lvwList.Items.Add(lvi)
but it doesn't work. the only thing i have to look back from vb6, but cannot figure out in vb.net
regards
 
i tried many way to do but not getting into subitems.

Dim lvi As New ListViewItem(szChannel)
lvi.SubItems.Add(szUsers)
lvi.SubItems.Add(szTopic)
lvwList.Items.Add(lvi)
 
Back
Top