Hello,
The mainapp is calling another module which has got a trayicon on the form.
I dont want to show the trayicon form, just run it in the tray.
application.showmainform:=false does not work.
thanks,
Al+



Tuesday, February 25, 2003, 1:47:02 PM, you wrote:
JS> The reason you are getting the AV is that Form1 doesn't exist. You are
JS> creating an instance of TForm1 not the variable form1. Two different things.

JS> Anyway, in the project source try

JS> Application.ShowMainForm := False;

JS> ----- Original Message -----
JS> From: Alistair George <[EMAIL PROTECTED]>
JS> To: Multiple recipients of list delphi <[EMAIL PROTECTED]>
JS> Sent: Tuesday, February 25, 2003 1:34 PM
JS> Subject: [DUG]: Showmodal problems


>> 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
JS> raises
>> an access error.
>> I dont want to show the form when it is created, but have it running in
JS> the tray
>> Icon.
>>
>> Any thoughts?
>>
>> Cheers,
>> Al+
>>
>> --------------------------------------------------------------------------
JS> -
>>     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/
>>

JS> ---------------------------------------------------------------------------
JS>     New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
JS>                   Website: http://www.delphi.org.nz
JS> To UnSub, send email to: [EMAIL PROTECTED] 
JS> with body of "unsubscribe delphi"
JS> Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/


-- 
Regards,
 Alistair+

---------------------------------------------------------------------------
    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/

Reply via email to