M
michael sorens
I have a form with a variety of controls (TextBox, CheckBox, and Button).
I have assigned TabIndex values starting from 1 at the top, working my way
down the form to 15 at the bottom. Each of these has TabStop set to true.
When I run the application and repeatedly press the tab key, the on-screen
focus order is very different than what I thought I specified. If it
matters, here is the general layout of my form. As you'll observer, most
of the controls are within separate Panels, except for the main ok and
cancel buttons which are outside the TabControl. What am I doing wrong?
Form
TabControl
TabPage
TableLayoutPanel
Panel
Label
TextBox
Panel
Label
TextBox
Panel
CheckBox
TextBox
Panel
Label
TextBox
Panel
Label
TextBox
okButton
cancelButton
I have assigned TabIndex values starting from 1 at the top, working my way
down the form to 15 at the bottom. Each of these has TabStop set to true.
When I run the application and repeatedly press the tab key, the on-screen
focus order is very different than what I thought I specified. If it
matters, here is the general layout of my form. As you'll observer, most
of the controls are within separate Panels, except for the main ok and
cancel buttons which are outside the TabControl. What am I doing wrong?
Form
TabControl
TabPage
TableLayoutPanel
Panel
Label
TextBox
Panel
Label
TextBox
Panel
CheckBox
TextBox
Panel
Label
TextBox
Panel
Label
TextBox
okButton
cancelButton