Hi,
Thanks for posting in the forum. As to the questions:
1. You will need to get the parent form through other means. For example, in a standard Windows Form application if you have a Button and wish to handle the Button's Click event, the automatically generated event handler is already a direct member of your Form object, so inside the event handler you automatically have reference to the Form object ("this" keyword in C# or "Me" keyword in VB). If such method is not practical, you will need to remember it somewhere. For example, you can use a small event handler class like this:
Code: C#
class WebViewHandlers
{
private Form m_Form;
private WebView m_WebView;
public WebViewHandlers(Form form, WebView webView)
{
m_Form = form;
m_WebView = webView;
webView.Closed += WebView_Closed;
}
private void WebView_Closed(object sender, EventArgs e)
{
m_Form.Close();
}
}
2. Yes. It is possible for you to intercept any Url. You will need to use a custom resource handler for this purpose. Please see this link for more information on how to use custom resource handler:
http://www.essentialobjects.com/doc/6/advanced/resource_handler.aspxHope this helps. Please feel free to let us know if you have any more questions.
Thanks!