listview selected item

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

    listview selected item

    I can't seem to get howto find the index of the selected item in a listview
    (View.Details). ...

    Thanks in advance,
    steve


  • scorpion53061

    #2
    Re: listview selected item

    > I can't seem to get howto find the index of the selected item in a
    listview[color=blue]
    > (View.Details). ...[/color]

    Try

    Dim item1 As ListViewItem = listView1.Items ( e.Index )


    Comment

    • Herfried K. Wagner [MVP]

      #3
      Re: listview selected item

      * "Steve" <sblackford@pro gnote.com> scripsit:[color=blue]
      > I can't seem to get howto find the index of the selected item in a listview
      > (View.Details). ...[/color]

      Have a look at the control's 'SelectedIndice s' property.

      --
      Herfried K. Wagner [MVP]
      <http://www.mvps.org/dotnet>

      Comment

      • IbrahimMalluf

        #4
        Re: listview selected item

        Hello Steve

        With ListView1

        For Each MyIndex As Integer In .SelectedIndice s

        'MyIndex will contain an index into each selected item

        'in your listview

        Next

        End With




        --
        Ibrahim Malluf
        JOSWD805 menyediakan link login yang di update terus setiap hari agar tidak terkena nawala,agar memudahkan para slotter untuk bermain. JOSWD805 menjadi satu-satunya tempat para penggemar slot gacor untuk mencari pengalaman seru, kemenangan besar, serta berbagai permainan yang lagi gacor hari ini.

        =============== =============== =============== =
        MCS Data Services Code Generator

        =============== =============== =============== =
        Pocket PC Return On Investment Calculator
        Free Download http://64.78.34.175/mcsnet/kwickKalk1.aspx


        "Steve" <sblackford@pro gnote.com> wrote in message
        news:b1eMb.1558 2$6y6.405484@bg tnsc05-news.ops.worldn et.att.net...[color=blue]
        > I can't seem to get howto find the index of the selected item in a[/color]
        listview[color=blue]
        > (View.Details). ...
        >
        > Thanks in advance,
        > steve
        >
        >[/color]


        Comment

        Working...