Tab Order Issue

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,
I have a form with about 40 text boxes and selection of panels and labels.
I applied them using cut and paste so went through and set the TabIndex
properties starting at zero and incrementing each one by 1.

If i press tab within the designer it works perfectly however once compiled
it moves between from the first to second, focus vanishes for a tab press and
then starts over on first control again.

Can anyone help me straighten this out please?
 
Hi,
I have a form with about 40 text boxes and selection of panels and labels.
I applied them using cut and paste so went through and set the TabIndex
properties starting at zero and incrementing each one by 1.

If i press tab within the designer it works perfectly however once compiled
it moves between from the first to second, focus vanishes for a tab press and
then starts over on first control again.

Can anyone help me straighten this out please?

If you look on the view menu there is a tab order option which will
put little visual tabs on all the controls showing the current order.
Then just click on each in the order you want to tab. It will show you
where your missing tab is going and should fix it without having to
fiddle with the tab index property. (This is VS 2003, the option may
have moved location in 2005 and I'm not sure if it's in Express at all
but I'd assume it is)
 
Hi,
I have a form with about 40 text boxes and selection of panels and
labels.
I applied them using cut and paste so went through and set the
TabIndex
properties starting at zero and incrementing each one by 1.
If i press tab within the designer it works perfectly however once
compiled it moves between from the first to second, focus vanishes for
a tab press and then starts over on first control again.

Can anyone help me straighten this out please?

A while ago I had a problem with tab-order: it turned out that one of the
controls had an OnLeave handler that set the focus to a specific control.

Hans Kesting
 
The TabOrder tool is a massive help and the issue centred around a
control.Select() occuring in an old Validating event handler.

Many thanks to you both.
 
Back
Top