new_listview := TListview.Create(new_Sheet);
Die Methode Form1.FindComponent() findet nur solche Komponenten, deren Owner Form1 ist.
Delphi-Quellcode:
function ActiveListView(pc: TPageControl): TListView;
begin
Result := pc.ActivePage.FindComponent('ListView' + IntToStr(pc.ActivePageIndex)) as TListView;
end;
Silvestergrüße vom marabu