If I have two columns (Report Style) and some items added to the control using this code:
How would do it so when the user double clicks on the listview, I can add each column to a seperate textbox (from one line of course - I use fullrowselection kind of thing)Code:Dim lstItem As ListItem With ListView1 .ColumnHeaders.Add , "Column1", "Column1" .ColumnHeaders.Add , "Column2", "Column2" Set lstItem = .ListItems.Add(1, "Text1", "Text1") lstItem.SubItems(.ColumnHeaders("Column2").SubItemIndex) = "Text2" Set lstItem = .ListItems.Add(2, "Text3", "Text3") lstItem.SubItems(.ColumnHeaders("Column2").SubItemIndex) = "Text4" Set lstItem = Nothing End With
To show it more visually:
After the user doubleclicks on the first row my textboxs would look like this:Code:Column1 Column2 Text1 Text2 Text3 Text4
I hope you know what I mean.Code:------------------ ----------------------- | Text1 | | Text2 | ------------------ -----------------------


Reply With Quote
