I have a listview in form1 containing the subitems, Plate number, Engine_Number, Chasis_Number, LTFRB Case_Number and Color. I transfer the Plate number in the listbox in form2. Also i transfer the Item in the listbox to textbox1. My problems is this, How i display the other subitems (Engine_Number, Chasis_Number, LTFRB Case_Number and Color) in the listview and put it in the textbox2, textbox3, and textbox4 when i transfer the the Item in the listbox to textbox1. thank you

Hi, I use this to put listview items in textboxes (3 in my case) by clicking on an item in my listview.

Private Sub listview_ItemSelectionChanged(ByVal sender As Object, ByVal e As System.Windows.Forms.ListViewItemSelectionChangedEventArgs) Handles ListView1.ItemSelectionChanged, ListView2.ItemSelectionChanged, ListView3.ItemSelectionChanged
        TextBox1.Text = e.Item.Text
        TextBox2.Text = e.Item.SubItems(1).Text
        TextBox3.Text = e.Item.SubItems(2).Text
    End Sub
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.