put code similar to the following in your keyup event... KeyCode is a default parameter of the keyup event that keeps track of the key number of each key on your keyboard.
A good way to know the keycode of the keys on your keyboard is to place a MsgBox(KeyCode) line in the event to display the number for each key pressed. Then you code in what you want it to do when you know the key number.Code:If KeyCode = 38 then ' up key hit 'enter code to move bar up text1.setfocus ' return focus to text box End if If KeyCode = 40 then ' down key hit 'enter code to move bar down text1.setfocus ' return focus to text box End If If KeyCode = 33 then ' pg up hit 'enter code to move bar to top text1.setfocus ' return focus to text box End If If KeyCode = 34 then ' pg down hit 'enter code to move bar to bottom text1.setfocus ' return focus to text box End If
[Edited by scuzymoto on 09-20-2000 at 05:39 PM]




Reply With Quote