Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Hello:
I have problem with records in list boxhere is the code that im using
If (Not (lstTsoCCharge.ListCount = 0)) Then
lstTsoCCharge.RemoveItem (lstTsoCCharge.ListCount-1)
If (lstTsoCCharge.ListCount = 0) Then
cmdRemove.Enabled = False
End If
End IfCAN ANY BODY HELP IN IN THE PROBLEM THAT I HAVE..... IS
i want to delete record only if the record is selected from the list box... other wise it should display error. and it should delete only the selected record from the listbox if no record is selected then display error
Currently it is deleting the very last record from the list box even if i have not selected it in the list
any help or suggestion ?
thanks
Restive2025
Creator of 100 Languages, Master in 99

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |