Hi,
I have a listview item with 6 columns.
I want when clicking one of the six columns to get the index of the column or even the first entry of the column (if thats simple).
I have searched and i found on moucedownhandler
But this is not what i want.
Any ideas?
Regards
I have a listview item with 6 columns.
I want when clicking one of the six columns to get the index of the column or even the first entry of the column (if thats simple).
I have searched and i found on moucedownhandler
Code Code:
Private Sub MainList_MouseDown(sender As Object, e As System.Windows.Forms.MouseEventArgs) Handles MainList.MouseDown Dim ht As ListViewHitTestInfo = MainList.HitTest(e.Location) Select ht.Location Case ListViewHitTestLocations.Label MsgBox("text = " & Chr(34) & ht.SubItem.Text & Chr(34)) End Select End Sub
But this is not what i want.
Any ideas?
Regards