Hi
The best way to check whether connection is available or not is to ping for response from a particular site (that site server should always be up like google) at regular intervals. There are some ways to check for values by querying some dlls but as far as i know they are not that reliable.

Signature
Bharat Biyani (bsb@orcim.com)
http://www.orcim.com
> Hi all!
>
[quoted text clipped - 6 lines]
>
> Thanks.