Binding keys to Data

JaxaL
04-19-2004, 01:57 PM
Hi,

I looked up a code to bind keys.. here it is:

Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = vbKeyUp Then
MsgBox "you hit the up arrow"
End If
End Sub

I tried to bind the keys to a Data which is connected to a database [2000].. but nothing happened.. even if i tried the original code.. still nothing happened..

I want to bind my left and right arrow keys to move to previous and next record... is this even possible? i would LOVE to use a horizontal bar to do that.. i have seen in a few forms.. but i couldnt understand it.. ANY HELP will be appreciated...

Thank.

JaxaL
04-19-2004, 02:12 PM
Ok i have sorted that problem out.. but here is another question.. how do u bind the following:

1] HOME KEY, END KEY, PAGE UP, PAGE DOWN.
2] ESCAPE KEY [ For exiting so that when i press the ESCAPE KEY, it unloads or exits the forum]
3] SPACEBAR
4] ENTER key

I know im asking for a lot.. but ill really appreciat some help.

Thanks.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum