How to programatically create components to go on a form

I'm trying to create a component on an existing form (eg a TWebPanel) using something like the following in a TWebButton.OnClick event

procedure TForm1.WebButton1Click(Sender: TObject);
begin
FMyPanel := TWebPanel.Create(self);
InsertComponent(FMyPanel);
end;

Every time I run this, I get this error

The is not duplicate panel on the form and I can change the name to anything else and I get the same error.

What is the correct way to programatically add a control to a form ?

The code

procedure TForm1.WebButton1Click(Sender: TObject);
begin
FMyPanel := TWebPanel.Create(self);
FMyPanel.Parent := Self;
end;

should work

Yep, that worked !

Thanks