Hi i hope someone can help, In basic terms i am trying to stop the embeded browser, in my Windows Forms app, from navigating to the 'This program cannot display the webpage' page and instead display my own error page.
The C# application is a Web Browser embedded in my Windows Forms, its purpose is allowing the user to click on the provided buttons that navigate the browser to pre-defined WebService URL's. If the Service is not running on the Machine then instead of the browser saying that it was unable to load i need to to navigate to my custome page instead.
I have looked around and as yet had no luck in finding a solution apparently HttpStatusCodes are a way to go but i have no idea how to use them.
Code Snippet
private void currentMachineToolStripMenuItem_Click(object sender, EventArgs e)
{ webBrowser1.Navigate("http://localhost:2021/wsservice/status");
}
As you can see, currently very simple program.