Hey everyone. I have controls all over the place on one form so when I hit the tab the focus goes all over the place. Is there a way to disable the TabIndexing or is there a way around it? Thanks.
Printable View
Hey everyone. I have controls all over the place on one form so when I hit the tab the focus goes all over the place. Is there a way to disable the TabIndexing or is there a way around it? Thanks.
You can either set TabStop = False for those controls that this property applies or set TabIndex manually directly in the properties window - once you change value of tabindex for one control rest of them are automatically readjusted so you will just "keep going". :)
The way to do it is to start with the last control that you want to tab to, and set it to 0. Then you go to the one that is second to last, and set it to 0. Then continue until you get to the first control that you want in the tab order. When you set it to 0, the others will be in the correct order. Just set the tabindex to 0 in the reverse order that you want.
An easier way is to download MZTools, which has at TabOrder tool that displays each control on a form that has the tab property set to TRUE in a listbox, and allows you to move a control either up or down in the order. Saves some time. I use it before deploying an app so that things look more professional.