TabIndex property of TabStripPage not getting refreshed

Docking/MDI for Windows Forms Forum

Posted 13 years ago by Vinod Raghupathy
Version: 2.0.0074
Avatar
Hi,

We are facing a problem in using tabstrippagecollection. The scenario where we are facing the issue is as follows.

I have a tabstrippagecollection say for example with 3 TabPages (with tabindices 0,1,2). Now if i remove a middle tabstrippage programmatically, tabstrippage with TabIndex 1 is removed and the tabstrippagecollection will now have 2 elements. However, the 2nd element will still have tabindex of 2 instead of 1. Is this the expected behaviour of the tabstrip ?

Regards,

Vinod.R

Comments (3)

Posted 13 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Yes, I don't believe that any .NET controls, even the native Windows Forms ones alter that TabIndex property.


Actipro Software Support

Posted 13 years ago by Vinod Raghupathy
Avatar
So, which is the property i should look at to retrieve the index properly. ?

Regards,

Vinod.R
Posted 13 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Oh I see what you are asking now. The TabIndex is a property of Control which is the index order for TAB key presses when the TabStop property is set.

To find the index of the TabStripPage within its parent TabStrip you'd have to do something like this:
int index = tabStrip.Pages.IndexOf(page);


Actipro Software Support

The latest build of this product (v2018.1 build 0341) was released 6 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.