The reason you are getting the AV is that Form1 doesn't exist. You are
creating an instance of TForm1 not the variable form1. Two different things.
Anyway, in the project source try
Application.ShowMainForm := False;
- Original Message -
From: Alistair George [EMAIL PROTECTED]
To:
Al,
if this is the application's main form then from the help:
TApplication
property ShowMainForm: Boolean;
Description
Use ShowMainForm to control whether and when the application shows its main
form.
The default value of True is set in the constructor. When ShowMainForm is
True the main
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.
Sorry, should have stated (as someone else has) that it has to be the
mainform to work. Is the trayicon form part of the same project or a
different exe ?
I'm not sure what you are trying to do.
- Original Message -
From: Alistair George [EMAIL PROTECTED]
To: Multiple recipients of list
Also, on the close event of the form, do
Action:=caFree;
This will free the form for you and you wont have to do the finally,
free bit.
Jeremy
-Original Message-
From: Alistair George [EMAIL PROTECTED]
To: Multiple recipients of list delphi [EMAIL PROTECTED]
Date: Fri, 21 Feb 2003
Jeremy
Thats a new one - neat - thanks
Should read the help file more closely !!
Regards
Paul Lowman
Lowman Consulting Ltd.
[EMAIL PROTECTED]
---
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of vss
Sent: Friday, 21 February 2003 11:36
To: Multiple recipients of list delphi
Subject: Re: [DUG]: Showmodal problems
Also, on the close event of the form, do
Action:=caFree;
This will free the form for you and you wont have to do