How Can I Assign TabIndex in runtime in VB6?

Suppose you have 5 controls on a form and their tab order is like this.

Suppose you have 5 controls on a form and their tab order is like this Index - TabIndex 1 - 0 2 - 1 3 - 2 4 - 3 5 - 4 If you change 3 to 1 Then it will look like this Index - TabIndex 1 - 0 2 - 2 3 - 1 4 - 3 5 - 4 Visual Basic will automatically bump up by one all tabindex equal to and higher than the one you assigned. There will never be a time where two controls have the same tabindex. This causes problems for routines that assign tab indexes like yours.

What you should do is not assign the tabindex directly from the database but rather build an array of control indexes associated with tab indexes. Sort it based on the tabindex and then start assigning, starting at whatever is at tabindex 0 (or the lowest).

Yes, Worked for me. Thanks @RS Conley. – Nirmal Mar 15 at 14:06.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions