How to use TabPanel

I want to have a Component on the panel I want in a TabPanel.
For example, after performing TabPanel1.Append (“TEST”), I want to show Label over it.

There are 2 ways to create a control in code:
ContainerControl
Control Set

I do not understand well.
I have been in the program for one week.
Please give a little more specific explanation. ^^

You can dynamically embed container controls, see http://developer.xojo.com/userguide/desktop-container-controls.

Dim cc As New MyContainer cc.EmbedWithin(Self, 0, 0)

Also have a look at the examples. Specifically Desktop/Container Controls.