Scroll through buttons and text box with tab

Asked

Viewed 223 times

1

Good afternoon everyone, inside windows form I put several text boxes and buttons, but when I navigate between with tab they are disordered, I know that if I do one by one will be in order, but it has been done. Is there any way to change it in a simpler way or do I have to redo it all one by one? If in a login form for example: I enter the login and password data, then have two ok buttons and exit, by typing the tab it goes to exit and not to ok. I could redo them and doing them in order, but is there an easier way to fix them when ready? Grateful

2 answers

4


There is the option Tab Order in the Visual Studio which facilitates the sorting of components.

inserir a descrição da imagem aqui

By clicking on this option the Visual Studio will show how your Tab Order. inserir a descrição da imagem aqui

Simply click on each of the components in the order you want to sort their components.

inserir a descrição da imagem aqui

Another option is to go in the properties of your component, in the category Behavior and define the property Tabindex. Being zero for the first component of its tab and increasing by 1 for the other components.

  • Perfect was just what I needed. Thank you very much

0

There is also the possibility to configure the property of all components in the Form. The Tabindex property. VC can config via panel or code.

The property is in the property panel of all components. Or Control.Tabindex = 1;

Where control can be a Textbox, a Panel, a Picturebox, among other controls.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.