I have a WebBrowser Control on the main form of my app. I plan to bundle an HTML page with the install and have it display in the control.

That part I have no problem with, but what I would like to do is to check for a valid internet connection and if there is one, to display that page in the WebBrowser control.

My question is how do I check for the connection and if it's not there, display my bundled HTML page instead of the "Invalid URL" page that the control loads by default.

Thanks in advance for any help.