Edit Listview Subitem In Vb6 Format

Edit Listview Subitem In Vb6 Format 4,1/5 6937 votes

I'm sitting in a VB-project and i have a ListView with 3 cells; a checkbox, a name and another text value. I want the last cell to be editable for the user. The second cell is also okay to have editable, no problems at all. How can i set cells to be editable? Right now i'm having this code to fill the ListBox: Dim row(3) As String Dim itm As ListViewItem Dim txtbox As New TextBox row(0) = ' row(1) = 'some value' row(2) = '0' itm = New ListViewItem(row) itm.SubItems.Add('txtbox') ListView1.Items.Add(itm Any tips how to let the user change the last (or both second and last) cell? Dim iRow, iCol as Integer Private Sub TextOverlay_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) ListView1.Items(iRow).SubItems(iCol).Text = TextOverlay.Text End Sub Private Sub ListView1_Click(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles ListView1.MouseClick Dim hit As ListViewHitTestInfo = ListView1.HitTest(e.X, e.Y) Dim iWidth As Integer For iCol = 0 To hit.Item.SubItems.Count - 1 If hit.Item.SubItems(iCol).Bounds.Left 1 Then If e.X.

Subitem

Michaels Dec 28, 2017 - I was doing removing items from another form for listbox and it was working good. Now I want to do with listview but I couldn't do it here is my.