C
cnlmgsoft
Unregistered / Unconfirmed
GUEST, unregistred user!
文件1type TFrame2 = class(TFrame) Memo1: TMemo; BitBtn1: TBitBtn; private { Private declarations } public { Public declarations } end;---------------------------------文件2procedure TForm1.Button1Click(Sender: TObject);var frame:TFrame2;begin frame:=TFrame2.Create(self); frame.Parent:=self; frame.Left:=100; frame.Top:=100; frame.Visible:=True;end;procedure TForm1.Button2Click(Sender: TObject);var frame1:TFrame2;begin frame1:=TFrame2.Create(self); frame1.Parent:=self; frame1.Left:=200; frame1.Top:=200; frame1.Visible:=True;end;可是编译出错 “A component named Frame2 already exists.”请问这是什么意思啊?TFrame到底怎么使用啊,难道和别的可视化组件不一样?我动态创建别的控件都可以嘛,比如说动态创建TButton多谢指教!!!