i have a listview with subitems namely Name,Age,gender,position, type. The positions are Driver Conductor and Inspector. I want to do is when i Select the name in the listview If his position is driver AND his attendance is IN, the name will be add in the combobox.add.item . if the attendance is out msgbox will appear. also in the conductor and inspector . Thank you :D

Ok to get the selected items subitems:

Dim item As ListViewItem = listview1.Selecteditems(0)
Dim Position as String = item.SubItems(2).Text 
'First Item is main item and index is zero based

You haven't stated where attendance is coming from but you'd do something like this:

If Position ="Driver" And Attendence = "IN" then
    Combobox1.Items.add(item.text)
Else
    Msgbox(Item.text &" is Out")
End if
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.