procedure TForm1.FormCreate(Sender: TObject); begin if InputBox('Доступ','Введите пароль','') <> 'пароль' then Halt; end;