I need to host an online payment gateway in a Browser
control in Framework 4.5
and have come across the problem where the CSS
is not applied correctly or indeed at all.
I have been through all of the options here with no luck and have tried to use the Navigate
override detailed here and shown below where the page renders properly but is popped in a new browser window.
browser.Navigate(url, "<meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge,chrome=1\">");
What I'm looking to do is make some webservice
calls dependent on what control the user clicks in so I have tapped into the MouseDown
event.
I've also tried a WPF
app with no luck to see if the Browser
control is different.
I'm waiting to see if the payment gateway guys can supply me with the CSS so I can apply it manually but in the meantime does anyone have any other suggestions ?
**** UPDATE ****
Have tried the suggestions below with no luck.
I have also tried this Internet Explorer Local Machine Zone Lockdown to see if it made any differences and it didn't.
***** Further Update ***** I'm getting the following error about the certificate at this site :
And also a JavaScript errors advising me that AddEvent
is not supported. I'm wondering if this is the failed browser emulation ?
Another update
In realtion to the above I followed Noseratio's excellent advice and added the following:
SetBrowserFeatureControlKey("FEATURE_WARN_ON_SEC_CERT_REV_FAILED", fileName, 0);
This feature is not supported for applications hosting the WebBrowser Control.