PDA

Click to See Complete Forum and Search --> : Index of selected list item


Anthrax
Jan 25th, 2000, 11:14 AM
I have a combo box, style 1, where users can enter items into the list by typing it then hitting enter. I want the user to be able to select one of the list items already entered and be able to delete it by pressing the delete key.
How can I delete the selected record?

MartinLiss
Jan 25th, 2000, 11:30 AM
Don't you maen Style = 0? In any case this code will remove the entry.

Combo1.RemoveItem Combo1.ListIndex


------------------
Marty
Why is it called lipstick if you can still move your lips?


[This message has been edited by MartinLiss (edited 01-25-2000).]

VBfreak
Jan 25th, 2000, 11:56 AM
Don't forget you need to trap the delete key as well if you only want the item to delete when the DELETE key is used !!! GOOD LUCK !

Anthrax
Jan 26th, 2000, 07:50 AM
thanks for the help!