It would help if you could identify when it is not working exactly? The code for this is pretty simple, if the tab content is empty we set the focus to the class combo box, if not we do nothing.