Solved

ListBox

Posted on 1998-07-28
2
238 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
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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
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 …
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…
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…

837 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