Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Tab Index

Status
Not open for further replies.

dvannoy

MIS
May 4, 2001
2,765
US
I set the tab index for each textbox on my form..

0 being the first. once i start pressing tab it jumps from the first textbox to the address bar in IE..whats up with that??

also how can i set focus to a textbox so when the form opens the cursor is blinking in the correct textbox..

Thanks
 
Hello,

Concerning the focus on a textbox, check the following link:
thread855-400181.

Otherwise, I exactely have the same problem as you.
I put a tabIndex=0 on my textbox and tabIndex=1 for a button.
The focus is on my textbox. After the first Tab, it also jumps to the URL address and get to my button only on the second tab.
I believed the problem comes from the fact that each control has a default Tabindex set to 0. I updated it to another value and the problem still remains.
Anybody can help us ?
Thanks.
 
TabIndex 0 means no Tab Stop with VS.NET, at least that is what I have learned to my expenses.
I use the method described in the thread vilrbn gave to set the focus on the first control (that has tab index 1) and then I tab from there.
hth Daren J. Lahey
Just another computer guy...
If you are unsure of forum etiquette check here FAQ796-2540
 
Alcar thats what i did but it still jumps from the first textbox which has focus to the IE address bar..how do you stop it from jumping to the address bar??

all my tabindex's are setup correctly..
 
Thanks Alcar, I've found where the problen was: my textbox Tabindex was set to 0 instead to 1.
Updating it to 1 and my button to value 2, it's working fine and not jumping anymore to the URL bar.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top