It looks like you're new here. If you want to get involved, click one of these buttons!
When a user presses (KeyDown) or releases (KeyUp) a key, the KeyDown and KeyUp events occur. The KeyDown and KeyUp events receives all keystrokes. These events are most often used for extended character keys such as function keys, navigational keys, combination of keys with standard keyboard modifiers (such as the Shift key, Ctrl key, etc.) and distinguishing between the numeric keypad and regular number keys. There are a number of keys that do not cause the KeyDown and KeyUp events to occur, such as:
The ENTER key if the form has a CommandButton control with the Default property set to True.The ESC key if the form has a CommandButton control with the Cancel property set to True.The TAB key.
The KeyDown and KeyUp events can be used to determine if the SHIFT key was pressed by using the following two arguments: keycode and shift. Using these two arguments, you can determine which character to return, such as A or a.
You can find more information on the KeyUp and KeyDown events in your Visual Basic 5.0 books online.
I hope that this information helps, Yiay. I wish you the best of luck in all your programming ventures!
Keenan Stewart (firstname.lastname@example.org)Learning Advisor, http://www.scholars.com
Microsoft Certified Technical Education CenterNovell Authorized Online Training ProviderURL:http://www.scholars.com
If KeyCode = vbKeyRight Then Form2.Show
If KeyCode = vbKeyUp Then Form2.Show