Solved

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

Posted on 2010-08-31
9
530 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
Guide to Performance: Optimization & Monitoring

Nowadays, monitoring is a mixture of tools, systems, and codes—making it a very complex process. And with this complexity, comes variables for failure. Get DZone’s new Guide to Performance to learn how to proactively find these variables and solve them before a disruption occurs.

 
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 our DevOps Teams Maximize Uptime

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us. Read the use case whitepaper.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
c# DateTime Format validation 4 68
how to remove error in database 6 34
Selenium and Xpath 4 31
T-SQL and CLR parameter strings 9 27
Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

733 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