procedure TForm1.Button2Click(Sender: TObject);begin TreeView1.Items.AddChildObject(nil,'Form3',TForm3);end;procedure TForm1.TreeView1Click(Sender: TObject);var Node:TTreeNode;begin Node:=TreeView1.Selected
if Node=nil then exit
If Node.Data=nil then Exit
TCustomFormClass(Node.Data).Create(Self).Show;end;