VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Captures TAB-keystroke on form with more than one control

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

Rate 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.

Download this snippet    Add to My Saved Code

Captures TAB-keystroke on form with more than one control Comments

No comments have been posted about Captures TAB-keystroke on form with more than one control. Why not be the first to post a comment about Captures TAB-keystroke on form with more than one control.

Post your comment

Subject:
Message:
0/1000 characters