Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Textbox focus skipping on pressing TAB

Tags:

c#

winforms

I have app where I have multiple textboxes and I would like to do when the user is focused in one textbox when he presses TAB button on keyboard I would like to skip the focus into other textbox which I will set.

Is there any way to do that easily? I have 20 textboxes in this form and I need it to skip from textbox1 to textbox2 to textbox3....textbox20 when press the TAB key.

like image 301
Marek Avatar asked Sep 13 '25 05:09

Marek


1 Answers

First of all you have to set the tab index of each text box,

you can set either from the properties window (for each textbox ) or set by selecting the menu

view->Taborder.

you can set the tab index and by pressing the Tab key the control wil automatically transfer from 1 textbox to another.

like image 147
Sumeshk Avatar answered Sep 14 '25 21:09

Sumeshk