Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VB6 resetting Tab Index Values - What to do about it?

Tags:

vb6

I'm finding that as I change the TabIndex property for several controls on my forms, the VB6 is resetting them to different (not necessarily the old) values as soon as my back is turned. This is becoming rather annoying.

Does anyone know how to prevent this, or if it can't be stopped, what method is used to choose the values (so I can work with it rather than against it)?

like image 229
Brian Hooper Avatar asked Jan 20 '23 21:01

Brian Hooper


1 Answers

Edited: To include MarkJ's comment

Are you editing them in the correct order? VB6 automatically changes the TabIndex for some controls if you try to set multiple controls to the same index.

So the best way to do it is usually to start with the control that you want to be the last one and set that to 0 or 1 (I can't remember which is the lowest in VB6) and then continue through every other control in reverse order.

like image 99
Hans Olsson Avatar answered May 19 '23 01:05

Hans Olsson