views:

74

answers:

1

I'm working on a winforms app with an embedded vpn. I would like to have a control indicate vpn connection status by indicating whether or not the vpn process is running.

Any help would be greatly appreciated.

Thanks!

+1  A: 

You can use a Timer control that periodically fires off a BackgroundWorker component to check the VPN connection status. I do this to check network connection status and toggle the enabled state of a button. It's also necessary to check status when the button is clicked in case the connection is dropped between polls.

Jamie Ide
Jamie, Thanks for your help!-s