当我使用以下代码右键单击列表视图项时,我正在寻找列的索引:
Private Sub Source_lvArticles_MouseDown(sender As Object, e As System.Windows.Forms.MouseEventArgs) Handles Source_lvArticles.MouseDown
If e.Button = System.Windows.Forms.MouseButtons.Right Then
Sources_RightClickedCol = 0
Dim info As ListViewHitTestInfo = Source_lvArticles.HitTest(e.X, e.Y)
Sources_RightClickedCol = info.Location
End If
End Sub
我能够找到我右键单击的项目的文本(info.Subitem.Text),我只是找不到它的列索引......