Solved

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

Posted on 2010-08-31
9
525 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
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

 
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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SqlDependency to get update from sql to my c# app 2 37
HttpPostedFile 1 26
write xml in vb.net 2 24
Following an example - Why do I need to click Save button twice? 3 25
This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
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.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

813 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

17 Experts available now in Live!

Get 1:1 Help Now