Member Avatar

Dim hTable As Hashtable = New Hashtable() Dim duplicateList As ArrayList = New ArrayList() Dim itm As ListViewItem For Each itm In ListView1.Items If hTable.ContainsKey(itm.Text) AndAlso hTable.ContainsKey(itm.SubItems(1).Text) AndAlso hTable.ContainsKey(itm.SubItems(2).Text) AndAlso hTable.ContainsKey(itm.SubItems(3).Text) Then 'duplicate duplicateList.Add(itm) Else hTable.Add(itm.Text, String.Empty) End If Next 'remove duplicates For Each itm In duplicateList ListView1.Items.Remove(itm) Next I want to compare 3 subitem in listview like this: Date____________Name_______________Value 11/12/13________llallala_______________12334 11/12/13________llallala_______________12334 11/12/13________ddsfvxcv_____________16542 13/12/12________ddsfvxcv_____________12334 10/12/13________owowewe_____________23024 then normally it will remove first and second row because it is duplicate but now it cannot.... I means it just compare between first column....so if the first column is same but second and third …

Member Avatar
0
26
Member Avatar

i have a combobox that contains the items 0001,0002,0003, etc. i have a listview with 3 columns namely ID, Name , Age. I want to do is when i select the ID "0001" in the combobox, it will display the name and the age in the textbox1 and textbox2 that is from the listview . Thank you

Member Avatar
0
8
Member Avatar

i have a listview with subitems namely NAME Age and Position. The positions are Driver, Conductor and Inspector. I have 3 textbox namely CountD, CountC, CountI. What i want is if i Click the Name in the listview where the position is driver, the CountD.text will display 1 and if i Click another name in the listview where the position is also driver, the CountD.text will display 2 and so on. Also in other two texboxes where there position is Conductor and Inspector. HELP ME PLEASE GODBLESS

Member Avatar
0
7
Member Avatar

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

Member Avatar
0
3
Member Avatar

I am looking for the a simplest for of code where I can add some items to a listview. i have 4 text boxes and 4 columns in a listview.. what could be the code to put 4 values as a single row in list view.. i managed to put put first textbox value as listviewitem (the first column) , but rest 3 has to be added as subitems... i am stuck here..

Member Avatar
0
4
Member Avatar

hi all, here my problem is i'm preety new to vb.net programming. but have a little knowledge in vb6 programming. Say, when i press the 'edit' button a listview is shown, filled with records('empcode' field from empdetail) from a access table, say 'empdetail'. now if i doubleclick on a particuler record in the listview, then the listview will disappear and the records will be displayed in the textboxes. exactly what we do in vb6, the coding follows,cn is the connection to the db. [code] private sub listview1_dblclick() for i=1 to listview1.listitems.count if listview1.listitems(i).selected=true then dim rs as new adodb.recordset rs.cursorlocation=aduseclient …

Member Avatar
0
24

The End.