[CASE CLOSED]Interesting problem.... Anyway to solve it?
Hi,
I've got a weird problem. You see, there are many textboxes in my page and when user press tab button in the keyboard, it would sometimes jump to the Address link bar, sometimes to the button.
Is there anyway to stop that and make it so that when the user press tab, it will jump to the next textbox instead?
Regards,
Roger
Re: Interesting problem.... Anyway to solve it?
That would be your TabIndex property
Set your first textbox (or control) with a TabIndex of 0. incriment that number for each control that you want the tab focus to follow. for instance your first Textbox TabIndex will be 0, the next textbox will be 1, then the next will be 2, and so on...
They will follow that order as the user tabs
Re: Interesting problem.... Anyway to solve it?
Oh hi, :wave: is you who helped me again. :thumb:
But then even though I've set the tab index, it still jump to the address bar.
For example, TextBox1-> Index 0
TextBox2-> Index 1
But it jump to the address bar. Help.... :cry:
Re: Interesting problem.... Anyway to solve it?
Sorry try this:
Make your index start at 1 instead of 0. After focus on a control with a TabIndex of 0, the focus goes to the addressbar
So make it
TextBox1.TabIndex = 1
TextBox2.TabIndex = 2
TextBox3.TabIndex = 3
Re: Interesting problem.... Anyway to solve it?
Oh I got it.. Thanks a lot dude! :bigyello:
P.S. Decided to post in this forum to get help because what I did last time was to delete all the textboxes and then add them in sequence again. Take lots of time and effort. :eek2: