Solved

20 Sep 10 15 - VS 2005 VB.Net - How to arrange Tab Control feature on .Net Controls

Posted on 2010-08-31
9
518 Views
Last Modified: 2012-05-10

VS 2005 / VB.Net - Windows Application

On all my .Net Controls on Form1.VB, i have set the property

TabIndex which starts from 1,2,3....

But still i am losing on some controls or swapping from one control to another.

How to fix this issue

0
Comment
Question by:chokka
9 Comments
 
LVL 8

Expert Comment

by:Gururaj Badam
ID: 33568373
Try setting the values again, without missing any control whether label or groupbox or so.

On a safer side you can start numbering the first control at 100 or so (the number which has never been used)
0
 

Author Comment

by:chokka
ID: 33568629
So you say that to start from 100, 101,102.. will work out..!

Also for ALL the labels, i kept 0
0
 
LVL 8

Expert Comment

by:Gururaj Badam
ID: 33568710
as far the numbering is in order it should work. Multiple controls with same index may break the loop. Try not to repeat. I'm suggest start value as 100 so that your old numbering gets cleared off. There's not harm if you wish to start from 1 again.
0
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 
LVL 3

Expert Comment

by:dockhand
ID: 33569459
My guess is that you have multiple controls with the same order.  VS2005 in its hurry to be helpful can really mislead you in this aspect.  If you change the order of a control in the IDE it does not react the same way that the IDE did in VB6.  You can end up with duplicates.  If however as Novice_Novice stated you start with a new sequence then the IDE will pick up from that point forward.

You might just double check that you didn't accidentally change the TabStop value to FALSE as well.
0
 
LVL 4

Expert Comment

by:parthmalhan
ID: 33573933
Try the following :

start from the very 1st textbox or combobox whatever is in your form.
change its tabindex to 0
now select the second control to which you want to get your cursor after pressing tab on 1st control. Set its tabindex to 1
and so on till your last record.

NOTE :

Skip all the controls in which user cant write (like label,disabled textbox etc)

It will surely work
0
 
LVL 8

Expert Comment

by:Gururaj Badam
ID: 33673040
Everybody is suggesting the same solution. It yet strange that you're not able to fix your problem.

I suggest you to recreate the control and start ordering the tab stops in the order you require.

Or accept the best suggestion to close the question.
0
 

Accepted Solution

by:
chokka earned 0 total points
ID: 33677151
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now