Help with listview and addhandler

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

    #1

    Help with listview and addhandler

    Could someone please give me an example of using the addhandler
    statement with the listview item click event. Also, if I could get an
    example of what the eventhandler would look like.

    Thanks in advance,
    Bill

  • Herfried K. Wagner [MVP]

    #2
    Re: Help with listview and addhandler

    "Bill2k" <nonconformativ e@gmail.com> schrieb:[color=blue]
    > Could someone please give me an example of using the addhandler
    > statement with the listview item click event. Also, if I could get an
    > example of what the eventhandler would look like.[/color]

    The listview control doesn't have an 'ItemClick' event. Which event are you
    looking for?

    --
    M S Herfried K. Wagner
    M V P <URL:http://dotnet.mvps.org/>
    V B <URL:http://classicvb.org/petition/>

    Comment

    • Bill2k

      #3
      Re: Help with listview and addhandler

      Sorry, I meant the ItemActivate event.

      Thanks again,
      Bill

      Comment

      • Herfried K. Wagner [MVP]

        #4
        Re: Help with listview and addhandler

        "Bill2k" <nonconformativ e@gmail.com> schrieb:[color=blue]
        > Sorry, I meant the ItemActivate event.[/color]

        \\\
        Private Sub Button1_Click( _
        ByVal sender As Object, ByVal e As EventArgs _
        )
        AddHandler _
        Me.ListView1.It emActivate, _
        AddressOf Me.ListView1_It emActivate
        End Sub

        Private Sub ListView1_ItemA ctivate( _
        ByVal sender As Object, ByVal e As EventArgs _
        )
        ...
        End Sub
        ///

        --
        M S Herfried K. Wagner
        M V P <URL:http://dotnet.mvps.org/>
        V B <URL:http://classicvb.org/petition/>

        Comment

        • Bill2k

          #5
          Re: Help with listview and addhandler

          Problem solved with your help. Thanks a lot!

          Comment

          Working...