Hi. I usually detect if there is an internet connection by pinging a popular site like yahoo or google. However I was wondering if there is a neater way to determine if there is an internet connection, similar to MSN.

From what i've noticed with msn is that as soon as an Internet connection is made active, msn signs in. That rules out some kind of thread, looks more like an event handler or something of that sort.

Does anyone knows of a neat way to detect if an Internet connection is active?

Jennifer.