Move buttons and text box with tab [closed]

1

Good afternoon everyone, inside windows form I put several text boxes and buttons, but when I navigate through the tab they are cluttered, I know that if I do one by one it will be in order, but it has already been done. Can you change in a simpler way or will I have to redo everything one by one? If on a login form for example: I type the login data and password, then have two ok buttons and exit, typing the tab it goes to the exit and not to the ok. I could redo them and doing them in order, but is there an easier way to fix them after they're done? Thankful

    
asked by anonymous 11.12.2017 / 23:04

2 answers

4

There is the Tab Order option in Visual Studio that makes ordering the components easier.

ClickingthisoptionVisualStudiowillshowyouhowyourTabOrderis.

Bysimplyclickingeachofthecomponentsintheorderyouwanttosortyourcomponents.

Another option is to go to the features of your component in the Behavior category and set the TabIndex property. Being zero for the first component of your tab and incrementing by 1 in 1 for the other components.

    
11.12.2017 / 23:23
0

You can also configure ownership of all components on the Form. The TabIndex property. VC can config via panel or code.

The property is in the property pane of all components. Or Control.TabIndex = 1;

Where control can be a TextBox, a Panel, a PictureBox, among other controls.

    
12.12.2017 / 01:00