Microsoft Knowledge Base Article
This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved.
Terms
of Use |
Trademarks
Article ID: 153308 - Last Review: July 15, 2004 - Revision: 3.2
How To Easily Set Up the Tab Sequence of a Form
This article was previously published under Q153308
The TAB key is often used to navigate sequentially through multiple
controls on a form. The order in which you move through the controls
depends on their TabIndex value, not their position on the form. This
article provides you with a simple method you can use to set up a required
tab sequence.
By default, the TabIndex property is set when you place a control on a form
relative to the other controls on the form. To set up a required tab
sequence, in the design environment, select the control you wish to be last
in the tab sequence. Set its TabIndex to Zero. Select each control in the
opposite direction from that which the user will use to navigate through
the form, and set each control's TabIndex to Zero.
Each time you set the TabIndex for a control, all the other controls have
their TabIndex recalculated so as you set them to Zero all the other
controls are incremented by one.
142816Â
(http://kbalertz.com/Feedback.aspx?kbNumber=142816/EN-US/
)
How to Make ENTER Key Move Focus Like TAB Key for VB Controls
APPLIES TO
- Microsoft Visual Basic 5.0 Learning Edition
- Microsoft Visual Basic 6.0 Learning Edition
- Microsoft Visual Basic 5.0 Professional Edition
- Microsoft Visual Basic 6.0 Professional Edition
- Microsoft Visual Basic 5.0 Enterprise Edition
- Microsoft Visual Basic 6.0 Enterprise Edition
- Microsoft Visual Basic 5.0 Control Creation Edition
- Microsoft Visual Basic 4.0 Standard Edition
- Microsoft Visual Basic 4.0 Professional Edition
- Microsoft Visual Basic 4.0 Professional Edition
- Microsoft Visual Basic 4.0 16-bit Enterprise Edition
- Microsoft Visual Basic 4.0 32-Bit Enterprise Edition
Community Feedback System
Very often, it takes hours to solve a problem. Very often, you've looked high
and low, and have tried a lot of solutions. When you finally found it, chances
are, it was because someone else helped you. Here's your chance to give back.
Use our community feedback tool to let others know what worked for you and what
didn't.
Please also understand that the community feedback system is not warranted to be
correct, it's simply a system that we've built to let people try and help each
other. If something in a feedback response doesn't make sense to you, or you're
not comfortable making changes that the feedback talks about (like registry
edits), please consult a professional.
Thank you for using kbAlertz.com Feedback System.
-- Scott Cate