Behaviour on Form loading

I have a webform that has a number of TWebDBEdit controls. This is fully templated and all tags on the template have tabindex set correctly. I thought (thinking back a few years here) that this overode any tabindex set on the WebCore form.

Several of the TWebDBEdit controls have OnExit events.

In OnShow has an AControl.SetFocus, which is the control that should be focused when the form is shown, it also has the lowest tabindex.

However, it seems that for some reason the OnExit events are called for the other fields and doesn't end up focused on any field.

this looks similar to [Preformatted text](

Any ideas?

All works as it should if the controls on the form have their TabOrder set correctly