When a page becomes active, change the control's parenty to point to the active tab.

Not sure it will work, but thats the theory anyway.