Help with listview and addhandler

  • Thread starter Thread starter Bill2k
  • Start date Start date
B

Bill2k

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
 
Bill2k said:
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.

The listview control doesn't have an 'ItemClick' event. Which event are you
looking for?
 
Bill2k said:
Sorry, I meant the ItemActivate event.

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

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top