Question: I have page control in main form and page controls in child form , I 
place the child form inside the main form by using docking features. 

I am not using MDI style

Now both forms have tabs in page control and I need to merge the child form 
tabs into the main form page control, what is the best way to do that?

Answer: 
The simplest and best way to handle multiple tabs on a page control is usually with Frames. Take the contents of each tab and factor them out into an individual frame for each tab. Move any shared components, state and code to a data module. Then just place those frames on the tab sheets of your page control.
I just tried

```
procedure TForm1.Button1Click(Sender: TObject);
begin
  while Form2.PageControl1.PageCount > 0 do
    Form2.PageControl1.Pages[0].PageControl := PageControl1;
end;

```

and it worked fine. Am I missing something obvious, or why is everybody giving such sophisticated solutions? :-)