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

Home Posts Topics Members FAQ

Is there a known TabIndex bug?

I'm preparing a form with some controls laid out at design time and some
controls added dynamically at run time. During the latter I programatically
set the TabIndex of these new controls so that the tab order will flow like I
want.

But my settings seem to have no effect.

Is this a known bug with Windows Forms dotNet?
--
Robert W.
Vancouver, BC
www.mwtech.com

Nov 17 '05 #1
4 4845
Try setting the TabIndex property after you add the control to its parent's control collection (if you aren't already)

--
Dave Sexton
dave@www..jwaon line..com
-----------------------------------------------------------------------
"Robert W." <Ro*****@discus sions.microsoft .com> wrote in message news:4E******** *************** ***********@mic rosoft.com...
I'm preparing a form with some controls laid out at design time and some
controls added dynamically at run time. During the latter I programatically
set the TabIndex of these new controls so that the tab order will flow like I
want.

But my settings seem to have no effect.

Is this a known bug with Windows Forms dotNet?
--
Robert W.
Vancouver, BC
www.mwtech.com

Nov 17 '05 #2
Dave,

I got excited when I read your response because I was not doing that. So I
went to the trouble to change the TabIndexes late, after all the controls
were in place. I iterated through the code and the tabindexes are being
assigned as I expected. But it still doesn't work. It's as if the TabIndex
sequence is following some other logic sequence that I'm just not sure of.

Most frustrating!

--
Robert W.
Vancouver, BC
www.mwtech.com

"Dave" wrote:
Try setting the TabIndex property after you add the control to its parent's control collection (if you aren't already)

--
Dave Sexton
dave@www..jwaon line..com
-----------------------------------------------------------------------
"Robert W." <Ro*****@discus sions.microsoft .com> wrote in message news:4E******** *************** ***********@mic rosoft.com...
I'm preparing a form with some controls laid out at design time and some
controls added dynamically at run time. During the latter I programatically
set the TabIndex of these new controls so that the tab order will flow like I
want.

But my settings seem to have no effect.

Is this a known bug with Windows Forms dotNet?
--
Robert W.
Vancouver, BC
www.mwtech.com


Nov 17 '05 #3
Are the controls all in the same container (Form / Panel)?

Nov 17 '05 #4
Bruce, they're divided into different panels and sub-panels. Does this make
a difference? Coming from the VB6 world, I seem to recall that there was
just one master tabindex for the form.

If this is not the case with dotNet, could you explain to me how TabIndex
works in a multi-panel form or send me a link to read?

--
Robert W.
Vancouver, BC
www.mwtech.com

"Bruce Wood" wrote:
Are the controls all in the same container (Form / Panel)?

Nov 17 '05 #5

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

Similar topics

1
1737
by: single_minded98 | last post by:
Eloo Everybody.. I need some help, all my asp page i already assign the tabIndex. Is there any sample when i click the input type (which tabindex assign to 1) and then the tabIndex focus to the button (which assign tabindex 2). Thanks
3
5248
by: Brad Isaacs | last post by:
Dear friends, I am using tabIndex and it works with my IE 5.5, IE6.0, and the NN6 browsers. However, it does not work for NN4. After reading online & seeing in my JavScript Bible that it is NOT COMPATIBLE for NN4,, I am wondering if there is anyone out there with any ideas ,,as to how I may get the same tabbing sequence within NN4...
6
4735
by: George Hester | last post by:
The reason why I want to do this is that I will set a form's elements to have a tabIndices. I start out with no tabbing. The page loads the cursor appears in a first Input box and until the user "does something" there is no tabbing. This is specific to Microsoft Internet Explorer 5+. Anyway the issue is that although I set the tabbing order...
7
20364
by: jerrygarciuh | last post by:
Hello, I have been playing with various Googled solutions for capturing the <Enter> key to suppress form submission. My first question is whether anyone has a script that works in all common browsers? The script bellow is IE only. It fails FF 1.0 and NN 7. Also, if I can trap the keypress I would like to use it to tab to the next...
2
15093
by: kai | last post by:
Hi, All I try to setup Tebindex in ASP.NET page like in Windows form, using Tabview, but cannot fnd it. In the properties windows in ASP.NET, change Tabindex does not change the tab order. How can setup the tab order in ASP.NET? Thanks Kai
4
445
by: Wayne Wengert | last post by:
I cannot get the tab settings on an aspx page to work as desired. First of all, I don't see a way to indicate whether a control is a tab stop. There is a tabindex property for labels (why?). When I set a specific order for the tabindex values that does not seem to be what happens on a page when the user presses the tab key? My books on...
0
1207
by: Robert Boudra | last post by:
In VB6, if you set the TabIndex of a control, it would automatically increment the TabIndex of the remaining controls on the form so that there would be no duplication. In VB.net, it seems perfectly legitimate to have two controls on a form with the same TabIndex. Is there a way to mimic the VB6 behavior so that I don't have to reset the...
5
10086
by: michael sorens | last post by:
I have a form with a variety of controls (TextBox, CheckBox, and Button). I have assigned TabIndex values starting from 1 at the top, working my way down the form to 15 at the bottom. Each of these has TabStop set to true. When I run the application and repeatedly press the tab key, the on-screen focus order is very different than what I...
3
4953
by: Alex Maghen | last post by:
Hi I have three questions about the Tab Order that's rendered by default on an ASPX page: 1. On a page that's all ordered HTML (instead of absolute positioning), shouldn't the default be that tab order goes by it's order in the page itself? I'm having a strange situation where tab order is jumping down to the bottom of the page and then...
0
7843
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8340
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...
1
7967
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
8220
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...
1
5713
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...
0
5392
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...
0
3875
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2353
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
0
1185
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.