Einzelnen Beitrag anzeigen

Benutzerbild von s.h.a.r.k
s.h.a.r.k

Registriert seit: 26. Mai 2004
3.159 Beiträge
 
#2

Re: Control im dynamisch erstellten Form ansprechen

  Alt 3. Mai 2010, 15:19
FindComponent kann dir da helfen.

Beispiel:
Delphi-Quellcode:
var
  btn : TButton
begin
  btn := Form1.FindComponent('Button1');
end;
»Remember, the future maintainer is the person you should be writing code for, not the compiler.« (Nick Hodges)
  Mit Zitat antworten Zitat