Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Hiding Form

0 views
Skip to first unread message

Nowhere Man

unread,
Nov 30, 1997, 3:00:00 AM11/30/97
to

How do you get the main for to HIDE as soon as the program starts. I
have tried numerous ways. Puting Form1.Hide in OnCreate, I thought
would work, but it doesn't. If I remember right, setting the form to
Visible: FALSE in the Object Manager doesn't work either. (Delphi 2.0)
Any suggestions? Thanks.

-Nowhere Man <nowhe...@cyber-west.com>

Dave Parsons

unread,
Nov 30, 1997, 3:00:00 AM11/30/97
to

Try this:
Form1.visible:=not form1.visible in the OnPaint event of the form...
that works for me in Delphi 2.
Happy coding!
Dave

Nowhere Man <nowhe...@cyber-west.com> wrote in article
<3481D3...@cyber-west.com>...

Nowhere Man

unread,
Dec 1, 1997, 3:00:00 AM12/1/97
to

Dave Parsons wrote:
>
> Try this:
> Form1.visible:=not form1.visible in the OnPaint event of the form...
> that works for me in Delphi 2.
> Happy coding!
> Dave

Woudn't that make it NEVER visible? I just want to hide it WHEN the
program STARTS.

-Nowhere Man <nowhe...@cyber-west.com>

Ralf Steinhaeusser

unread,
Dec 2, 1997, 3:00:00 AM12/2/97
to

you could try
Application.ShowMainForm := False;
in the Project-File

...eh...
should then look like this:
begin
Application.ShowMainForm := False;

Application.Initialize;
Application.CreateForm(TfrmMain, frmMain);
Application.Run;
end.

James D. Rofkar

unread,
Dec 2, 1997, 3:00:00 AM12/2/97
to

Try...

Application.ShowMainForm := False;

...just prior to the Application.CreateForm in your Delphi
Project (.DPR) file.

Hope this helps,
-Jim Rofkar
jro...@cros.net


Nowhere Man <nowhe...@cyber-west.com> wrote in article
<3481D3...@cyber-west.com>...

0 new messages