I am using the WebBrowser in WPF like this:
<WebBrowser
Name="SSSBrowser"
Margin="8,4,8,8"
Grid.Row="1"
dp:WebBrowserUtility.BindableSource="{Binding WebAddress}"/>
And in C# I am loading it simply, for now, like this:
private string _webAddress;
public string WebAddress
{
get { return "http://www.somewebsite.com/updates/message/message.htm"; }
set { _webAddress = value; }
}
What I would like to do is prevent it from displaying an error if they cannot reach the webpage, for whatever reason.
How do I keep tell if the website returned an error in code and disable the WebBrowser so that it doesn't give an error on screen to user?
Any help would be greatly appreciated!