Newbie's listview question

  • Thread starter Thread starter Kay
  • Start date Start date
K

Kay

Hi all,

Could you tell me how do I display the value of column(x) after I double
click a row?

Thanks~

Kay
 
Kay said:
Could you tell me how do I display the value of column(x) after I double
click a row?

\\\
Private Sub ListView1_DoubleClick( _
ByVal sender As Object, _
ByVal e As EventArgs _
) Handles ListView1.DoubleClick
If Me.ListView1.SelectedItems.Count > 0 Then
Me.Text = Me.ListView1.SelectedItems(0).SubItems(3).Text
End If
End Sub
///
 
Thanks Herfried!


Herfried K. Wagner said:
\\\
Private Sub ListView1_DoubleClick( _
ByVal sender As Object, _
ByVal e As EventArgs _
) Handles ListView1.DoubleClick
If Me.ListView1.SelectedItems.Count > 0 Then
Me.Text = Me.ListView1.SelectedItems(0).SubItems(3).Text
End If
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