VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Quick Tab Order

by Dale E. Lucid (2 Submissions)
Category: Coding Standards
Compatability: Visual Basic 3.0
Difficulty: Beginner
Date Added: Wed 3rd February 2021
Rating: (5 Votes)

Quick tip for setting control tab order quickly.

Rate Quick Tab Order

A speedy way to set the tab order is to work thru the controls in reverse order setting the tab stop property to 0 on each. When you reach the first control the tab order is set.
When setting the same property on successive controls there is no need to bounce from the form to the property page. Once the focus is set to that property the first time it remains on that property (if available) with each object that receives focus from that point. In the above example setting the tab stop would be... control.. 0, control... 0, control... 0.
To get the effect of setting focus to a control by clicking on it's label, as in Access, simply set the tab stop for the label as the next in order before the control that it labels. Since a label can't receive focus at run time the focus goes to the next object in tab order that can receive focus.

Download this snippet    Add to My Saved Code

Quick Tab Order Comments

No comments have been posted about Quick Tab Order. Why not be the first to post a comment about Quick Tab Order.

Post your comment

Subject:
Message:
0/1000 characters