ChrisK
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?
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?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
excellent and thanks....I'll pay ya back some how, starting with an A of course :)
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.
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.
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.
ASKER