var myControl: TDBGrade;
procedure Form.Button1.OnClick(Object Sender);
begin
if not Assigned(myControl) then
begin
myControl := TDBGrade.Create(self);
myControl.parent = self;
...
end;
end;
procedure Form.Button2.OnClick(Object Sender);
begin
if Assigned(myControl) then
begin
FreeandNil(myControl);
end;
end;