Thanks Arnaud,
Works fine, just Copy and Paste ;-)
Bonne Nuit,
Youri
Arnaud Nicolet wrote:
Le 15 janv. 07 à 22:48 Soir, Youri a écrit:
Hi,
I simply would like to delete the selected row(s) of a list box when
the user press the "Backspace" key on its keyboard.
I can't find which event to invoque.
Assuming your listbox has currently the focus, you can use the Listbox's
KeyDown event.
dim a As integer
a=asc(key)
if a=8 then 'you might also add 'or a=127' to consider also the delete key
me.RemoveRow me.ListIndex
end if
If your listbox may not have the focus, it should not respond to the
key._______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>