by Ulughbek (1 Submission)
Category: Custom Controls/Forms/Menus
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Mon 19th February 2001
Date Added: Mon 8th February 2021
Rating: (1 Votes)
Captures TAB-keystroke on form with more than one control
Select Case KeyCode
Case vbKeyTab 'Corresponds with 9
'This code is simple enough. The difficulty lies in realizing that this picturebox should be the ONLY control with its TABSTOP property set to TRUE, else the keystroke won't be captured, as VB wants to shift the focus to it's own next control.