Why use that syntax at all anyway. Especially if you want to access the
created form via a variable later.
It is not the way to do it. You don't have a form1 to reference, that's
why you get access violations.
Go to Torry's or DSP and get a trayicon component and look at the source.
Alternatively there is the source for the socket server (D5+ I think) that
comes with delphi that also includes a technique for minimizing to the
tray.
JED
[EMAIL PROTECTED] wrote on 25/02/2003 11:34:30 AM:
> Hi all:
> with TForm1.Create(nil) do
> try
> ShowModal;
> finally
> free;
> end;
>
> if, in TForm1.Onshow I set form1.visible:=false; or form1.hide then
> this raises
> an access error.
> I dont want to show the form when it is created, but have it running
> in the tray
> Icon.
>
> Any thoughts?
>
> Cheers,
> Al+
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the [EMAIL PROTECTED]
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED]
with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/