Scroll between components (TextBox and Buttons) using TAB

2

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

    
asked by IVAN CABRERA 26.07.2018 в 22:27
source

3 answers

7

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.

    
answered by 26.07.2018 / 22:41
source
0

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

    
answered by 26.07.2018 в 22:33
0

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

    
answered by 26.07.2018 в 22:30