Answer the question
In order to leave comments, you need to log in
How to hide the first form and show the second when the program starts?
Delphi 7. The simplest task is to hide form 1 and show form 2.
The first form without changing properties, the second visible=false;
It is necessary that when loading / showing the first form, this form is hidden and the second one is shown.
First form code
procedure TForm1.FormCreate(Sender: TObject);
begin
form2.Show;
form1.hide;
end;
procedure TForm1.Button1Click(Sender: TObject);
begin
form2.Show;
form1.hide;
end;
Answer the question
In order to leave comments, you need to log in
The second form at the time of the show most likely has not yet been created.
There is no Delphi at hand. That won't work?
procedure TForm1.FormCreate(Sender: TObject);
begin
form1.hide;
end;
procedure TForm2.FormCreate(Sender: TObject);
begin
form2.Show;
end;
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question