Solved

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

Posted on 2010-08-31
9
536 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
Increase Agility with Enabled Toolchains

Connect your existing build, deployment, management, monitoring, and collaboration platforms. From Puppet to Chef, HipChat to Slack, ServiceNow to JIRA, Splunk to New Relic and beyond, hand off data between systems to engage the right people.

Connect with xMatters.

 
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

Turn Insights into Action

Communication across every corner of your business is essential to increase the velocity of your application delivery and support pipeline. Automate, standardize, and contextualize your communication processes with xMatters.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
Come and listen to Percona CEO Peter Zaitsev discuss what’s new in Percona open source software, including Percona Server for MySQL (https://www.percona.com/software/mysql-database/percona-server) and MongoDB (https://www.percona.com/software/mongo-…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…

696 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