VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Enter to Tab

K.Olayan  (1 Submission)   Custom Controls/Forms/Menus   Visual Basic 3.0   Unknown Difficulty   Wed 3rd February 2021

This code gives the "enter" key the same functionality as the "tab" key in a vb form. When the user presses the "enter" key, it moves the focus to the next control, based on the tab index order. Don't forget to set the KeyPreview property of the form to True. (My thanks to Pennington. His TabToEnter2 code laid the foundation for this code.)

Assumes
The KeyPreview event of the form must be set to true for the Form_KeyPress event to fire.

Rate Enter to Tab (38(38 Vote))
Enter to Tab.bas

Enter to Tab Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters