I am by no means a network guru but here are some options.
You can ping a certain IP and dismiss replies but when there is no reply call your code.
You can query the Registry and look for the "connected" state.
You may also be able to do something with the winsocks control.
These you will need a timer to fire at your discretion. I have used the first two on different projects and they worked OK
Im sure other folks may have a better solution.
good luck
Last edited by dedub; November 12th, 2003 at 08:57 PM.
R.L.T.W. A+, NET+, CCNA
doin' my best