Computing.Net > Forums > Programming > VB 6.0 - List Box

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

VB 6.0 - List Box

Reply to Message Icon

Name: Restive2025
Date: June 1, 2004 at 16:27:38 Pacific
OS: XP Pro SP1
CPU/Ram: CPU-2.4, Ram-512 DDR
Comment:

Hello:
I have problem with records in list box

here 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 If

CAN 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



Sponsored Link
Ads by Google

Response Number 1
Name: Restive2025
Date: June 1, 2004 at 16:54:22 Pacific
Reply:

DISREGARD, I HAVE FOUND THE SOLUTION

:)

Restive2025
Creator of 100 Languages, Master in 99


0
Reply to Message Icon

Related Posts

See More







Post Locked

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


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: VB 6.0 - List Box

Vb 6.0 www.computing.net/answers/programming/vb-60/18825.html

Declaring Variables in VB 6.0 www.computing.net/answers/programming/declaring-variables-in-vb-60/9957.html

Vb 6.0 help www.computing.net/answers/programming/vb-60-help/7747.html