Reputation: 60691
I have a bunch of buttons on a form and when the person presses TAB I want the focus of the controls move in a specific order. Does anyone know how to do this?
Upvotes: 13
Views: 44726
Reputation: 15696
If you have form with lots of control then manage tab index by below method:
Example:
Then just click on controls one by one in order that you want to set tab order.
Upvotes: 33
Reputation: 73243
You can do this in the Designer as well, see Setting the TabIndex property of many form controls in Visual Studio?
Upvotes: 10
Reputation: 64682
Each item in your form-designer should have a TabIndex property.
Set the TabIndex in ascending order. (low-to-high)
Upvotes: 6
Reputation: 9362
Change the TabIndex
property of your controls and enumerate them according to your need.
Upvotes: 2