Nested TabPanels navigation

I use nested TabPanels and would like to change from a parent TabPanels to a child TabPanels from code. This is like pressing the TAB key on the keyboard.
How can I do this in code?
I can go from the child TabPanels to the parent TabPanels using the Parent.SetFocus of the currentTabPanel.