May be I am wrong, but all this code just the description of the properties , that you set at design time. You can check it. Put controls on your tab. Go to File -Print and select Form as Text. I have tried to put all your controls on a Tab and after I finished desigh I set Current Tab to 0, and it works fine. But if I don't do it, then the last tab would be all messed up.
Larisa