Solved

ListBox

Posted on 1998-07-28
2
235 Views
Last Modified: 2010-05-03
I want to use the DELETE key on keyboard to delete a item in a LISTBOX but have not had much luck!
0
Comment
Question by:adeline072898
2 Comments
 

Accepted Solution

by:
subhashgarg earned 100 total points
Comment Utility
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
 

Author Comment

by:adeline072898
Comment Utility
You are truely the best!!!!!!!!!!
Thank you very much for responding so quickly

Regards Adeline
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now