Hi,
I have a windows form with numerous textfields and a button. When the form is loaded, some of the textfields are visible, but not all, along with the button. The first textfield has focus and when i hit tab, the button is highlighted (the first textfield has tabIndex = 1 and the button has tabIndex = 2).
When the button is clicked, some of the textfields become invisible while others are invisible. After the button is clicked, a different text field has focus and i want to be able to hit tab once and highlight the same button as before.
I've tried to set the TabIndex property of the button to a different value in the onClick method of the button but it doesn't seem to work.
Basically, the form can be in onw of two states. In each state, a particular textfield is highlighted and i want to highlight the button with one tab regardless of which state the form is in.
I know i haven't really explained this well but any help would be greatly appreciated.
Thanks
I have a windows form with numerous textfields and a button. When the form is loaded, some of the textfields are visible, but not all, along with the button. The first textfield has focus and when i hit tab, the button is highlighted (the first textfield has tabIndex = 1 and the button has tabIndex = 2).
When the button is clicked, some of the textfields become invisible while others are invisible. After the button is clicked, a different text field has focus and i want to be able to hit tab once and highlight the same button as before.
I've tried to set the TabIndex property of the button to a different value in the onClick method of the button but it doesn't seem to work.
Basically, the form can be in onw of two states. In each state, a particular textfield is highlighted and i want to highlight the button with one tab regardless of which state the form is in.
I know i haven't really explained this well but any help would be greatly appreciated.
Thanks