Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

silly question about tabindexes

Status
Not open for further replies.

marduk813

Programmer
Jul 18, 2002
89
US
My userform has about 30 controls on it. Their tabindex properties are not in the correct order, so I need to renumber them. I was able to successfully do this on the first 6 controls, but after that I am unable to do it. I thought it might have something to do with duplicate tabindexes, but even when I try to specify an unused tabindex, the property always resets itself to its previous value. Make sense?
I thought this would be relatively easy to do, but it's getting to be very annoying.
Any thoughts?
 
Dunno 'bout duplicates but in help, it says that you can only use numbers from 0 to 1 less than the number of controls on your form

Have you tried using the "Setdefaulttaborder" property of the form - this will auto tabindex left > right and top > bottom Rgds
~Geoff~
 
Thank you both for your help. I didn't realize that grouped controls inside a frame start with a tabindex of 0. As it turns out, that was the whole problem. I was trying to change the tabindex of a control (in a group of only 2) to 7 to be in order with all the controls on the form. Once I just let it be 0 and set the next grouped control to 1, everything worked out fine. See, I told you it was a silly question. :)

Thanks again to both of you for replying. You each taught me something I didn't know.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top