Tlabels do not have a Window Handle.

Obviously something is writing to the label at some point so just trap it
then..

If it is a component which you link to the TLabel then you will either need
to source to the component, or hopefully the developer will have created an
event for the component that tells you when you have connected/disconnected.

Try another component, there are a few on Delphi Super Page

Chris

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of gajo
Sent: Tuesday, August 17, 1999 11:20 AM
To: Multiple recipients of list delphi
Subject: [DUG]: When Dial-Up Networking is off..


I have a program that traces every time I connect to the Internet. The only
trouble is I don't know how to find out the time when the user
disconnects. I'll probably try to get the handle of the TLabel that displays
Connecting to... and when it changes to Disconnecting.. then
I'd just log the current time. But is there a more effective way?

Thanks, Gajo Csaba

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

Reply via email to