listview

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Supra

    #1

    listview

    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.A dd(szChannel)
    lvi.SubItems.Ad d(szUsers)
    lvi.SubItems.Ad d(szTopic)
    Debug.WriteLine ("AddList :" & szChannel & " " & szUsers & " " &
    szTopic) ===> i can see in debug. how do i get string into
    listview.subite ms?

    regards,?
    end sub

  • chrisrock

    #2
    RE: listview

    Dim lvi As ListViewItem(sz Channel)
    lvi.SubItems.Ad d(szUsers)
    lvi.SubItems.Ad d(szTopic)
    lvwList.Items.A dd(lvi)




    "Supra" wrote:
    [color=blue]
    > 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.A dd(szChannel)
    > lvi.SubItems.Ad d(szUsers)
    > lvi.SubItems.Ad d(szTopic)
    > Debug.WriteLine ("AddList :" & szChannel & " " & szUsers & " " &
    > szTopic) ===> i can see in debug. how do i get string into
    > listview.subite ms?
    >
    > regards,?
    > end sub
    >
    >[/color]

    Comment

    • Supra

      #3
      Re: listview

      i added last one

      lvwList.Items.A dd(lvi)
      but it doesn't work. the only thing i have to look back from vb6, but cannot figure out in vb.net
      regards


      chrisrock wrote:
      [color=blue]
      >Dim lvi As ListViewItem(sz Channel)
      >lvi.SubItems.A dd(szUsers)
      >lvi.SubItems.A dd(szTopic)
      >lvwList.Items. Add(lvi)
      >
      >
      >
      >
      >"Supra" wrote:
      >
      >
      >[color=green]
      >>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.A dd(szChannel)
      >> lvi.SubItems.Ad d(szUsers)
      >> lvi.SubItems.Ad d(szTopic)
      >>Debug.WriteLi ne("AddList :" & szChannel & " " & szUsers & " " &
      >>szTopic) ===> i can see in debug. how do i get string into
      >>listview.subi tems?
      >>
      >>regards,?
      >>end sub
      >>
      >>
      >>
      >>[/color][/color]

      Comment

      • Supra

        #4
        i tried........

        i tried many way to do but not getting into subitems.

        Dim lvi As New ListViewItem(sz Channel)
        lvi.SubItems.Ad d(szUsers)
        lvi.SubItems.Ad d(szTopic)
        lvwList.Items.A dd(lvi)

        Supra wrote:
        [color=blue]
        > i added last one
        > lvwList.Items.A dd(lvi)
        > but it doesn't work. the only thing i have to look back from vb6, but
        > cannot figure out in vb.net
        > regards
        >
        >
        > chrisrock wrote:
        >[color=green]
        >> Dim lvi As ListViewItem(sz Channel)
        >> lvi.SubItems.Ad d(szUsers)
        >> lvi.SubItems.Ad d(szTopic)
        >> lvwList.Items.A dd(lvi)
        >>
        >>
        >>
        >>
        >> "Supra" wrote:
        >>
        >>
        >>[color=darkred]
        >>> 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.A dd(szChannel)
        >>> lvi.SubItems.Ad d(szUsers)
        >>> lvi.SubItems.Ad d(szTopic)
        >>> Debug.WriteLine ("AddList :" & szChannel & " " & szUsers & " " &
        >>> szTopic) ===> i can see in debug. how do i get string into
        >>> listview.subite ms?
        >>>
        >>> regards,?
        >>> end sub
        >>>
        >>>
        >>>[/color]
        >>[/color]
        >[/color]

        Comment

        • Supra

          #5
          I use it in a MDIChild form..........

          I use it in a MDIChild form, it displays nothing!
          does ne knows?
          regsards,


          Supra wrote:
          [color=blue]
          > i tried many way to do but not getting into subitems.
          >
          > Dim lvi As New ListViewItem(sz Channel)
          > lvi.SubItems.Ad d(szUsers)
          > lvi.SubItems.Ad d(szTopic)
          > lvwList.Items.A dd(lvi)
          >
          > Supra wrote:
          >[color=green]
          >> i added last one
          >> lvwList.Items.A dd(lvi)
          >> but it doesn't work. the only thing i have to look back from vb6, but
          >> cannot figure out in vb.net
          >> regards
          >>
          >>
          >> chrisrock wrote:
          >>[color=darkred]
          >>> Dim lvi As ListViewItem(sz Channel)
          >>> lvi.SubItems.Ad d(szUsers)
          >>> lvi.SubItems.Ad d(szTopic)
          >>> lvwList.Items.A dd(lvi)
          >>>
          >>>
          >>>
          >>>
          >>> "Supra" wrote:
          >>>
          >>>
          >>>
          >>>> 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.A dd(szChannel)
          >>>> lvi.SubItems.Ad d(szUsers)
          >>>> lvi.SubItems.Ad d(szTopic)
          >>>> Debug.WriteLine ("AddList :" & szChannel & " " & szUsers & " " &
          >>>> szTopic) ===> i can see in debug. how do i get string into
          >>>> listview.subite ms?
          >>>>
          >>>> regards,?
          >>>> end sub
          >>>>
          >>>>
          >>>>
          >>>
          >>>[/color]
          >>[/color]
          >[/color]

          Comment

          • Supra

            #6
            i solved it..........

            by addding declare variable to string in case "322"
            regards,

            Supra wrote:
            [color=blue]
            > I use it in a MDIChild form, it displays nothing!
            > does ne knows?
            > regsards,
            >
            >
            > Supra wrote:
            >[color=green]
            >> i tried many way to do but not getting into subitems.
            >>
            >> Dim lvi As New ListViewItem(sz Channel)
            >> lvi.SubItems.Ad d(szUsers)
            >> lvi.SubItems.Ad d(szTopic)
            >> lvwList.Items.A dd(lvi)
            >>
            >> Supra wrote:
            >>[color=darkred]
            >>> i added last one
            >>> lvwList.Items.A dd(lvi)
            >>> but it doesn't work. the only thing i have to look back from vb6,
            >>> but cannot figure out in vb.net
            >>> regards
            >>>
            >>>
            >>> chrisrock wrote:
            >>>
            >>>> Dim lvi As ListViewItem(sz Channel)
            >>>> lvi.SubItems.Ad d(szUsers)
            >>>> lvi.SubItems.Ad d(szTopic)
            >>>> lvwList.Items.A dd(lvi)
            >>>>
            >>>>
            >>>>
            >>>>
            >>>> "Supra" wrote:
            >>>>
            >>>>
            >>>>
            >>>>> 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.A dd(szChannel)
            >>>>> lvi.SubItems.Ad d(szUsers)
            >>>>> lvi.SubItems.Ad d(szTopic)
            >>>>> Debug.WriteLine ("AddList :" & szChannel & " " & szUsers & " " &
            >>>>> szTopic) ===> i can see in debug. how do i get string into
            >>>>> listview.subite ms?
            >>>>>
            >>>>> regards,?
            >>>>> end sub
            >>>>>
            >>>>>
            >>>>>
            >>>>
            >>>>
            >>>>
            >>>[/color]
            >>[/color]
            >[/color]

            Comment

            • Supra

              #7
              i solved it..........

              by addding declare variable to string in case "322"
              regards,

              Supra wrote:
              [color=blue]
              > I use it in a MDIChild form, it displays nothing!
              > does ne knows?
              > regsards,
              >
              >
              > Supra wrote:
              >[color=green]
              >> i tried many way to do but not getting into subitems.
              >>
              >> Dim lvi As New ListViewItem(sz Channel)
              >> lvi.SubItems.Ad d(szUsers)
              >> lvi.SubItems.Ad d(szTopic)
              >> lvwList.Items.A dd(lvi)
              >>
              >> Supra wrote:
              >>[color=darkred]
              >>> i added last one
              >>> lvwList.Items.A dd(lvi)
              >>> but it doesn't work. the only thing i have to look back from vb6,
              >>> but cannot figure out in vb.net
              >>> regards
              >>>
              >>>
              >>> chrisrock wrote:
              >>>
              >>>> Dim lvi As ListViewItem(sz Channel)
              >>>> lvi.SubItems.Ad d(szUsers)
              >>>> lvi.SubItems.Ad d(szTopic)
              >>>> lvwList.Items.A dd(lvi)
              >>>>
              >>>>
              >>>>
              >>>>
              >>>> "Supra" wrote:
              >>>>
              >>>>
              >>>>
              >>>>> 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.A dd(szChannel)
              >>>>> lvi.SubItems.Ad d(szUsers)
              >>>>> lvi.SubItems.Ad d(szTopic)
              >>>>> Debug.WriteLine ("AddList :" & szChannel & " " & szUsers & " " &
              >>>>> szTopic) ===> i can see in debug. how do i get string into
              >>>>> listview.subite ms?
              >>>>>
              >>>>> regards,?
              >>>>> end sub
              >>>>>
              >>>>>
              >>>>>
              >>>>
              >>>>
              >>>>
              >>>[/color]
              >>[/color]
              >[/color]

              Comment

              Working...