473,786 Members | 2,404 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Tabbing through Controls - 2nd post

Tabbing from the first control on a form always sends me to IE's Address Bar
instead of the next control, no matter how I set the TabIndex property for
the controls. Why is this happening?

For example, I have a simple login screen with 2 textboxes (Login ID and
Password) and 2
buttons (Login and Cancel). I've set the TabIndex Property of each control,
starting at 0.

When I enter a login id and then press Tab, the focus goes to IE's Address
Bar instead of the next control! How do I allow the user to reliably cycle
through the controls on a web page?

Nov 18 '05 #1
3 2223
Don't use zero. Start at 1 and see if that works?

<P>
<asp:TextBox id="TextBox1" tabIndex="1"
runat="server"> </asp:TextBox></P>
<P>
<asp:TextBox id="TextBox2" tabIndex="2"
runat="server"> </asp:TextBox></P>
<P>
<asp:Button id="Button1" tabIndex="3" runat="server"
Text="Button"></asp:Button></P>

"Richard" <Ri*****@discus sions.microsoft .com> wrote in message
news:C0******** *************** ***********@mic rosoft.com...
Tabbing from the first control on a form always sends me to IE's Address
Bar
instead of the next control, no matter how I set the TabIndex property for
the controls. Why is this happening?

For example, I have a simple login screen with 2 textboxes (Login ID and
Password) and 2
buttons (Login and Cancel). I've set the TabIndex Property of each
control,
starting at 0.

When I enter a login id and then press Tab, the focus goes to IE's Address
Bar instead of the next control! How do I allow the user to reliably cycle
through the controls on a web page?


Nov 18 '05 #2
It looks like 0 is the value you don't want to use....

"The tab index of the Web server control. The default is 0, which indicates
that this property is not set."

http://msdn.microsoft.com/library/de...indextopic.asp

"Richard" <Ri*****@discus sions.microsoft .com> wrote in message
news:C0******** *************** ***********@mic rosoft.com...
Tabbing from the first control on a form always sends me to IE's Address
Bar
instead of the next control, no matter how I set the TabIndex property for
the controls. Why is this happening?

For example, I have a simple login screen with 2 textboxes (Login ID and
Password) and 2
buttons (Login and Cancel). I've set the TabIndex Property of each
control,
starting at 0.

When I enter a login id and then press Tab, the focus goes to IE's Address
Bar instead of the next control! How do I allow the user to reliably cycle
through the controls on a web page?


Nov 18 '05 #3
Thank you Ken! This works.

"Ken Cox [Microsoft MVP]" wrote:
It looks like 0 is the value you don't want to use....

"The tab index of the Web server control. The default is 0, which indicates
that this property is not set."

http://msdn.microsoft.com/library/de...indextopic.asp

"Richard" <Ri*****@discus sions.microsoft .com> wrote in message
news:C0******** *************** ***********@mic rosoft.com...
Tabbing from the first control on a form always sends me to IE's Address
Bar
instead of the next control, no matter how I set the TabIndex property for
the controls. Why is this happening?

For example, I have a simple login screen with 2 textboxes (Login ID and
Password) and 2
buttons (Login and Cancel). I've set the TabIndex Property of each
control,
starting at 0.

When I enter a login id and then press Tab, the focus goes to IE's Address
Bar instead of the next control! How do I allow the user to reliably cycle
through the controls on a web page?


Nov 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

145
6381
by: David MacQuigg | last post by:
Playing with Prothon today, I am fascinated by the idea of eliminating classes in Python. I'm trying to figure out what fundamental benefit there is to having classes. Is all this complexity unecessary? Here is an example of a Python class with all three types of methods (instance, static, and class methods). # Example from Ch.23, p.381-2 of Learning Python, 2nd ed. class Multi:
0
1391
by: vikki | last post by:
I have my main window (made of a CFrameWnd and a CWnd subclasses). When I created the CWnd subclass (the main client area), I used WS_EX_CONTROLPARENT in the CreateEx method. I have several windows that are children of the CWnd, each including a window style WS_TABSTOP. However, tabbing among these controls does not work.
2
2300
by: Samuel Hon | last post by:
Hi I'm trying to prevent users from moving between different records in forms in Access 2000. I've turned off the record selectors and disabled the mouse wheel. I've now found that you can reach other records by tabbing through all the controls on the forms.
0
1157
by: Nick | last post by:
Hi, I have a requirement to build a mouse free windows application and have to hence rely heavily on the tabbing indices. However, I'm facing some issues when the tab goes to a datagrid. It shows very random behavior when the focus is on the last cell. It sometimes skips the next control to give focus to the one after that, and sometimes even skips 2 controls. Also, when you try and navigate back with shift+tab, it again skips quite a...
2
2308
by: rmiller | last post by:
I'm in dire straits. I'm converting part of a product into VB.NET, but still need to access forms written in VB 6.0. I've got just about everyting working, but the tabbing on the form. The form captures the tab key when it's pressed, but fails to go through the series of controls. Help!
6
2246
by: Doug Bell | last post by:
Hi I have a DataGrid with some hidden columns and also some read Only and some ComboBox Columns. Sandard Tabbing through the Datagrid sees the focus go to the hidden columns requiring further Tabbing to get to the desired column but it works fine stopping correctly on the ComboBox column. I have built a routine to test whether the use is Tabbing forward or back (Shift Tab) by looking at the last location, not by trapping the Keys. If
1
1476
by: Meenakshi Sundaram | last post by:
Hi I have a page which contains 3 Iframes loaded dynamically in a iterate loop. I have a requirement to navigate though all the buttons and hyperlinks in the page through the TAB key. But I do not want a Iframe included in the tabbing sequence. If I set the tabIndex=-1 the complete Iframe and its content are ignored from being tabbed. But I want the controls inside the Iframe to be tabbable but not the Iframe itself. Is there anyway I can...
7
1735
by: gtyler | last post by:
I would like to Programmatically move from one control to another following the TabIndex. If the user were to fill the maximum length of any one of a number of TextBoxs they would automatically be moved to the next TextBox. I have written this, and it works. It loops through each control until it finds the TabIndex + 1. But there must be a better way. Any ideas? Private Sub MoveToNextControl(ByVal Sender As TimeControl) Handles...
3
2624
by: Ty | last post by:
I am creating a ASP.net project and I wanted to make it so that when the user tabs on on of my pages that they do not have to tab through some controls. Is there a way to skip controls while tabbing? Thanks, Ty
0
9647
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10360
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10163
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9960
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7510
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6744
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5397
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4064
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3668
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.