i tried this codes but nothing happens(this is the add b)
For Each itm As ListViewItem In frmPROPERTY_FRAMELoad_Data.ListViewLOAD_RIS_ITEMS.Items
If itm.SubItems(0).Text = loadPrtUserRisItms Then
itm.SubItems(5).Text = TextBoxISSUED_QTY.Text
itm.SubItems(6).Text = TextBoxREMARKS.Text
MsgBox("Success")
End If
Next
frmPROPERTY_FRAMELoad_Data.ListViewLOAD_RIS_ITEMS.Refresh()
Me.Close()
I don't really understand why you would need a loop. It looks like you got some data from the item in the first place so you must already have a reference to it. Just use that reference to access it again. Don't do it from the dialogue. The dialogue should close and simply make the data available via properties. The main form should get the data from those properties and update the ListView itself.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.