ListBox

I want to use the DELETE key on keyboard to delete a item in a LISTBOX but have not had much luck!
adeline072898Asked:
Who is Participating?
 
subhashgargConnect With a Mentor Commented:
Use the KeyUp event for the list box and check the keycode for 46. If you want to delete the highlighted entry, irrespective of the focus, then set the form 'KeyPreview' property to TRUE and
check the same keycode in form's KeyUP event.

0
 
adeline072898Author Commented:
You are truely the best!!!!!!!!!!
Thank you very much for responding so quickly

Regards Adeline
0
All Courses

From novice to tech pro — start learning today.