uses yourform;
const
ClassArray: TClassArray = (Tyourform ) ;
var
TempClass: TComponentClass;
TempComp: TComponent;
begin
TempClass := TComponentClass (GetClass ('Tyourform'));
TempComp := TempClass.Create (Application);
if TempClass.InheritsFrom (TForm) then
begin
CurrentForm := TForm(TempComp) ;
CurrentForm.Tag := tempItem.Tag ;
CurrentForm.Parent := self ;
CurrentForm.BorderStyle := bsNone ;
CurrentForm.Align := alClient ;
self.Caption := Format('%s [%s]',[MAINFORMCAPTION,tempItem.Caption]);
CurrentForm.Show ;
end
else
TempComp.Free ;
end;