假设有过程:
procedure TForm1.Button1Click(Sender: TObject);
begin
ShowMessage('唐细刚 2008');
end;
想在 FormCreate 时候调用,怎么调用?
办法是:
procedure TForm1.FormCreate(Sender: TObject);
begin
Button1Click(Sender);
end;
呵呵,很简单.
假设有过程:
procedure TForm1.Button1Click(Sender: TObject);
begin
ShowMessage('唐细刚 2008');
end;
想在 FormCreate 时候调用,怎么调用?
办法是:
procedure TForm1.FormCreate(Sender: TObject);
begin
Button1Click(Sender);
end;
呵呵,很简单.