Link to home
Start Free TrialLog in
Avatar of ChrisK
ChrisKFlag for United States of America

asked on

VB5 Connection status

Hopefully someone knows this and will answer even though the point offering is low (I'm practically out at the moment).
How do you make your program recodnize when windows is connected to the net so it can auto launch from the task bar and remain dormant if your system is not connected?
Avatar of ChrisK
ChrisK
Flag of United States of America image

ASKER

actually slight correction, it'll be in the system tray and launch from there.  Just like ICQ or AIM for example.
ASKER CERTIFIED SOLUTION
Avatar of waty
waty
Flag of Belgium image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ChrisK

ASKER

excellent and thanks....I'll pay ya back some how, starting with an A of course :)
Avatar of bennys
bennys

an easyer way to do this will be to use the internet transfer control and try to connect to your application server (or any other server you want to work with.)
when you get a response , you are connected.
you will want to use error trapping and not display a message if you find out you're not connected.
with this control you can even set the timeout period for you connection trials.
Avatar of ChrisK

ASKER

That control isn't that great from what I've seen, and constantly sending out winsock requests to check the status and using error trapping is taxing on the system resources where as the code provided by waty simply grabs the connect value from the registry which uses practically no resources and doesn't require a winsock control to even be loaded...plus it's API so it's very quick.  But thanks for the input.