Form inside a Tab***



hi all;

I m trying to put a form inside a Tab***

this is the
the problem is that I get an error when compiling, "Cannot assign a
Read Only property" when trying to assign pagecontrol1 as the parent of
my form

here is the code:


var
aForm : TfrmSupplierInformation;
tab*** : TTab***;
begin
//Create a new tab ***
tab*** := TTab***.Create(PageControl1) ;
tab***.PageControl := PageControl1;

//create a form
aForm := TfrmSupplierInformation.Create(Tab***);
aForm.Parent := tab***;
aForm.Align := alClient;
aForm.BorderStyle := bsNone;
aForm.Visible := true;

// tab***.Caption := aForm.Caption;

//activate the ***
PageControl1.ActivePage := tab***;
end;

I ve seen similar code all over the web so there must be some property
I m setting wrong , Any ideas?

thanks


Jo

.


Quantcast