I have WebBrowser control on my winform. When I try navigate to some web-site I get standard IE error pages like:
- "Navigation to the webpage was canceled"
- "The address is not valid"
- "Page couldn't be loaded"
- etc.
I need to handle these errors and return custom error message to user. Is there any way to solve this issue?
Best Answer
You want to handle the NavigateError event as shown here
Edit: including example code from the link: