Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

del key 1

Status
Not open for further replies.

safra

Technical User
Joined
Jan 24, 2001
Messages
319
Location
NL
Hi,

I like to delete selected listview item using the Delete key. I tried the onKeyPress event handler but it doesn't work on the Del key.

How can I do this?
 
use the onkeydown event

...
case key of
VK_KEYDOWN :
begin
//delete listview item
end;
VK_F1 :
begin
// show helpfile
end;
...
end;
...

 
use the onkeydown event

...
case key of
VK_DELETE :
begin
//delete listview item
end;
VK_F1 :
begin
// show helpfile
end;
...
end;
...

 
Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top