I have a Form made in C # with some buttons and TextBox, it is supposed that when I give the TAB key it is changed to the next component, be it a button or a text box, but sometimes it goes up to two or three components.
I do not have a code
In visual studio, when you are in the form designer:
Menu Ver/View -> Orden de tabulación
And then you simply click on each control in the order you want it.
in this part you can change it more easily, or at least I always did it that way ...
note: that's where TabIndex says ...
I hope you serve bro ... and the marques By: JJ
I tell you what manages the order tabs, is the TabIndex, which is a property in the controls.
public int TabIndex { get; set; }
going from lowest to highest 0,1,2,3,4 etc.
You can change it by design view or by code.
Code
button1.TabIndex = 1;
Design
Change TabIndex value