Le 26 avr. 07 à 01:32 Matin, Pedro fp a écrit: > G'day Folks > > After a long hiatus I'm doing a bit of RB programming again. > > I'm currently working on something that requires trapping the tab & > arrow keys in the KeyDown event of an EdifField. > I thought I might get the tab key with ... > > If Key = Chr(9) Then > > But it doesn't work. I have no idea how to catch the arrow keys. Any > clues?
normally, you can do that: dim a As integer a=asc(key) if a=9 then 'Tab key 'Do what you want elseif a>27 and a<32 then 'Arrow keys end if if you want to prevent the tab key to perform its action, add "return true" in 'Do what you want left arrow=28 right arrow=29 up arrow=30 down arrow=31 _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives: <http://support.realsoftware.com/listarchives/lists.html>
