|
-
Apr 26th, 2006, 10:05 PM
#1
Thread Starter
Addicted Member
[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
Last edited by Aka Roger; Apr 26th, 2006 at 10:43 PM.
Appreciated all helps given. Thanks Guys! 
-
Apr 26th, 2006, 10:21 PM
#2
Fanatic Member
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

In the unlikely event that I answer your question correctly, please Rate my post
Using Visual Studio 2005 Professional 
-
Apr 26th, 2006, 10:29 PM
#3
Thread Starter
Addicted Member
-
Apr 26th, 2006, 10:37 PM
#4
Fanatic Member
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

In the unlikely event that I answer your question correctly, please Rate my post
Using Visual Studio 2005 Professional 
-
Apr 26th, 2006, 10:42 PM
#5
Thread Starter
Addicted Member
Re: Interesting problem.... Anyway to solve it?
Oh I got it.. Thanks a lot dude! 
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.
Appreciated all helps given. Thanks Guys! 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|