getting data from a listView
I'd suggest: on the second form You may place some textbox controls (with "ReadOnly" property set to false"), their count corresponds to number of colums of Your Listview. Let's say the name of those controls are Text1, Text2 an so on.
Then, to the first form, witch contains Listview control, You must add a sub that handles the double_click event of listview:
Private Sub ListView1_DoubleClick(ByVal sender As Object, ByVal e As System.EventArgs) Handles ListView1.DoubleClick
'Inside this sub you put the code for reading the selected item's text and item's subitems texts, smth like this:
Form2.Text1.Text=Me.ListView1.SelectedItems(0).Tex t
Form2.Text2.Text=Me.ListView1.SelectedItems(0).Sub Items(0).Text
'an so on.
|