> call:
> with TfrmCapture.Create(Application) do
> try
> ShowModal;
> finally
> Free;
> end;
>
> The next time the modal call is used with mainform on the tray the
> following
> lines dont work:
>
> procedure TfrmCapture.btnCaptureClick(Sender: TObject); //modal form
> begin
> frmcapture.WindowState:=wsMinimized;
> frmcapture.Visible:=false;
What if you remove the 'frmcapture.' from these lines?
That default variable that Delphi creates for you when you generate a
new form is, IMHO, really a bad idea -- I remove it as a matter of
course.
Cheers,
Kerry S
_______________________________________________________________
DO YOU YAHOO!?
Get your free @yahoo.com.au address at http://mail.yahoo.com.au
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz