Hello and thank you for looking.
Problem Description:
I have implemented a c# WinForm application with the browser control embedded and have
You can override the web-browser's control method CreateWebBrowserSiteBase
.
protected override WebBrowserSiteBase CreateWebBrowserSiteBase()
{
return new ExtendedWebBrowserSite(this);
}
and implement ExtendedWebBrowserSite
like this:
class ExtendedWebBrowserSite : WebBrowser.WebBrowserSite,
IDocHostShowUI,
IfacesEnumsStructsClasses.IServiceProvider,
IInternetSecurityManager
...
That can call the class IInternetSecurityManager
.
One option would be to create your own dialog form (in C#) with another custom-security WebBrowser control on it. Then you can call from Javascript to C# to open the form instead of using showModalDialog.