473,386 Members | 1,647 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Increment Tab Order

In vb.net, if I instert a new control onto a form and I want that control
to occur in the middle of the Tab Order, how can I insert it into the tab
order and automatically increment the tabindex of all of the other controls
on the form? In VB1-6, this was done automatically, but in vb.net if I
insert a new control and give it a tab index of zero, I get two controls on
the same form with the same tabindex! I then have to manually increment all
of the tabindex values on the form.

Like hundreds of other things in vb.net, there must be a "new and improved"
way to do this, but so far I've not found it. Sometimes I get the feeling
that things were changed, just for the sake of changing them.

Bob
Nov 21 '05 #1
1 9571
Hi Bob,

In VB "classic" the Tabindex was an "absolute" value and therefore if you
inserted some value in the middle, the others values were reassigned. In
VB.NET the TabIndex of a control is value is relative to its parent, so the
tabindex of a control is really of the form 0.2.1 and you will see
duplicates if the parent controls are different. You can see the absolute
tabindex of each control if you select the form (not a control) and click
the menu View \ Tab Order. That said, a tabindex can be duplicated even
among controls of the same parent, and in this case the Z-Order is taken
into account.

There is a TabIndex Assistant in my add-in (below) that can help you greatly
to view and set the tabindex of each control, even automatically. If you
used MZ-Tools 3.0 for VB6, it is the same tool for VS.NET

--

Best regards,

Carlos J. Quintero

MZ-Tools: Productivity add-ins for Visual Studio .NET, VB6, VB5 and VBA
You can code, design and document much faster.
Free resources for add-in developers:
http://www.mztools.com

"Robert Boudra" <rb*****@comcast.net> escribió en el mensaje
news:uy**************@TK2MSFTNGP12.phx.gbl...
In vb.net, if I instert a new control onto a form and I want that control
to occur in the middle of the Tab Order, how can I insert it into the tab
order and automatically increment the tabindex of all of the other
controls on the form? In VB1-6, this was done automatically, but in
vb.net if I insert a new control and give it a tab index of zero, I get
two controls on the same form with the same tabindex! I then have to
manually increment all of the tabindex values on the form.

Like hundreds of other things in vb.net, there must be a "new and
improved" way to do this, but so far I've not found it. Sometimes I get
the feeling that things were changed, just for the sake of changing them.

Bob

Nov 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: MSDousti | last post by:
Hi, I'm confused with C++'s unary increment operator(++). Consider the following code: ////////////////////////////////////////////////////////////////////// #include <iostream> using...
9
by: Mark Turney | last post by:
I was reading "Practical C++ Programming" yesterday, and it mentioned that the order of execution for post-increment and post-decrement operators was ambiguous. I had previously learned that a...
11
by: Randell D. | last post by:
Folks, I have a table of addresses and a seperate table with contact names - All addresses tie to one or more names - I would like to keep track of the number of names 'belonging' to an address...
7
by: Yannick Turgeon | last post by:
Hello all, I'm using SS2K on W2k. I'v got a table say, humm, "Orders" with two fields in the PK: OrderDate and CustomerID. I would like to add an "ID" column which would be auto-increment...
2
by: Tom | last post by:
I am trying to store information into a table that has an auto increment field. There is currently no data in the table. Using the code below I cannot insert data into the table. I get an error...
2
by: Sox Fan in CT | last post by:
I have a wall product that is made in 4' wide increments. The product is sold by the foot. A customer may order 38 feet but they will actually receive 4 sections for a total of 40 feet. (they would...
5
by: Stuart | last post by:
Hi all, Iv'e got a page that has a mass amount of input fields, all of which require a decimal figure. To make it easier when it comes to inputting data, I'm trying to setup + and - links that...
12
by: badvoc | last post by:
Hi, I have had some good fortune on this site so I am back and I must iterate I am a beginer. I am having some problems getting to grips with the right technique to manage variables and...
2
by: musicbizguy | last post by:
Hello everyone. I'm a noob to MySql, so I'm hoping this is easy and I apologise in advance if I've got the terminology all wrong; I've searched the forum but couldn't find an answer. I have a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.