If you do it with the on exit procedure (on last tab control)remember that users also use a mouse.
When focus is on the last control of the subform and user clicks another control (say a tabpage,or a button) the on exit event will still be triggered and focus will not be put on the control the...