Shuttleu
2010-07-22 08:45:56
right now i have a strange problem
if i do this
but if i do this
its a strange error and i have no idea what is causing it
~shut
if i do this
TabPages[i] := TTabSheet.Create(frmDesign);
TabPages[i].Caption := 'Tab ' + Inttostr(i); // The Caption of the title
Tabpages[i].PageControl := PageControl; // We Must Identify are Page Control then the form works perfectlybut if i do this
TabPages[i] := TTabSheet.Create(frmDesign);
with TabPages[i] do
begin
Caption := 'Tab ' + Inttostr(i); // The Caption of the title
PageControl := PageControl; // We Must Identify are Page Control
end;it gives me the following error[Runtime Error] : Exception: Control '' has no parent window in line 152 in script C:\Users\Thomas\Desktop\MSI Form.scar
its a strange error and i have no idea what is causing it
~shut