Hi,
I have a problem and I need some help.
I work on a BHO and I have to replace the IE's DNS error page with my custom page. Does anyone know how to do it?
Printable View
Hi,
I have a problem and I need some help.
I work on a BHO and I have to replace the IE's DNS error page with my custom page. Does anyone know how to do it?
Not sure which error you refer to. but it's probably one of the special "about:" URI's
Look at the URL bar and take note of the URI.
In your BHO, when you see an attempt to browse to that URI, simply cancel and provide your own contents (or allow the navigate and then modify the page as desired).
It's also possible you're seeing a page from a remote site (or your router/proxy software) in response to trying to accessing a certain URL. If this is the case you probably can't do much about it other than parsing the contents to see what it is and take steps post navigate.
When you type a dns that doesn't exists IE shows "Internet Explorer cannot display the webpage". I did like you said but I cannot catch refresh event from BHO.