Detecting when the delete key is pressed

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello
I wish to set up a handler to detect when the <Delete> key is pressed on the keyboard. This is so that I can intercept it and if the focus is on my datagrid, I will display a confirmation button, if they say No then the delete will be reversed (if possible)

Thanx in advanc

Austin
 
Hi,

You have to inherit from the datagrid.

http://www.onteorasoftware.com/downloads/delete.zip

Ken
---------------------
Austin T said:
Hello,
I wish to set up a handler to detect when the <Delete> key is
pressed on the keyboard. This is so that I can intercept it and if the focus
is on my datagrid, I will display a confirmation button, if they say No then
the delete will be reversed (if possible).
 
Hi Ken,

Greath code, because with that I think it is possible to stop that almost
unstoppable deleting in the datagrid with the cntrl alt del and where I
could not find anything for on Google or in newsgroups.

As you probably know gives deleting gives as result that the user thinks it
is gone while it is not, it needs to be *removed*.

When needed I will try it and make a sample from it..

Cor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top