Form1 ist eine Variable

Außerdem ist sie zu diesem Zeitpunkt eh leer, weil keine Form-Instanz drin. (falls es doch funktioniert hätte)
TForm1.doit, wenn es eine "class procedure" (für M) oder "class procedure; static" (für P) ist.
Und bitte [DELPHI]dein code[/DELPHI] drumrum.
Ein Therapeut entspricht 1024 Gigapeut.