I have a Form with many TextBoxes. I need some TextBoxes inside one group, and other text boxes inside another group. By group, I just need a way to make these TextBoxes appear to belong with each other.
I made two Panels and added the TextBoxes to them. Then, I placed a border around these Panels.
However, my problem is that when I press Tab, the focus doesn't go to the next TextBox, but rather it goes in a random order to another TextBox. Sometimes the next TextBox is inside the first Panel, other times it is in the second Panel. How can I control the focus order?
This is an image to illustrate my point:
TabIndex
property but do not assign the value in code. Use the designer. In Visual Studio go to the menu item labeled "View" and them from the context menu, choose "Tab Order". – User 12345678