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!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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.