Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

ListBox

Posted on 1998-07-28
2
Medium Priority
?
256 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 400 total points
ID: 1466947
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
ID: 1466948
You are truely the best!!!!!!!!!!
Thank you very much for responding so quickly

Regards Adeline
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses

783 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