FlyingDoggyJake
09-22-2009, 02:03 PM
Hello again,
It seems to me that if you have a bunch of text boxes on a form and the user wishes to advance the focus from one text box to the next using the Tab key, it will advance in the order in which the text boxes were added to the form by the programmer.
eg. Imagine you had a form with text boxes laid out from top to bottom as so:
Text1
Text2
Text5
Text3
Text4
In this example, if you start with Text1 having the focus, the first Tab press would move the focus to Text2, the next Tab press would then skip over Text5 and put the focus on Text3, the next Tab press would then move down one text box to Text4 and then on the next Tab press it would jump back up to Text5.
I would like to be able to change it so that it moves from top to bottom regardless of the order in which I put the text boxes onto the form. Is there a simple way to do this or am I going to have to use such events as KeyDown, KeyPress...etc. on each text box and code in what I want done in the event that Tab is pressed?
This is not a huge issue, but I am curious if there's something I'm missing here.
Thanks
It seems to me that if you have a bunch of text boxes on a form and the user wishes to advance the focus from one text box to the next using the Tab key, it will advance in the order in which the text boxes were added to the form by the programmer.
eg. Imagine you had a form with text boxes laid out from top to bottom as so:
Text1
Text2
Text5
Text3
Text4
In this example, if you start with Text1 having the focus, the first Tab press would move the focus to Text2, the next Tab press would then skip over Text5 and put the focus on Text3, the next Tab press would then move down one text box to Text4 and then on the next Tab press it would jump back up to Text5.
I would like to be able to change it so that it moves from top to bottom regardless of the order in which I put the text boxes onto the form. Is there a simple way to do this or am I going to have to use such events as KeyDown, KeyPress...etc. on each text box and code in what I want done in the event that Tab is pressed?
This is not a huge issue, but I am curious if there's something I'm missing here.
Thanks