Hello please can somebody help me to display a listview item to a textbox.

Recommended Answers

All 2 Replies

Hi
Do u want to get all the times to Textbox or selected items?
Code to get the selected item Text of ListView

If Not ListView1.SelectedItem Is Nothing Then
    Text1.Text = ListView1.SelectedItem.Text
End If

Try this...

With MasterList.SelectedItem
            myID = .Text
            lblEmpNo = .SubItems(1)
            txtLastname = .SubItems(2)
            txtFirstname = .SubItems(3)
            txtMiddlename = .SubItems(4)
end with
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.