Internet Explorer 9 RC stops my WinForms WebBrowser control to work in editing mode

后端 未结 9 1813
渐次进展
渐次进展 2020-12-09 13:45

Using the IHtmlDocument2.designMode property set to On to switch a WebBrowser control hosted on a Windows Forms form to editing mode suddenly stopp

9条回答
  •  不知归路
    2020-12-09 14:38

    I was also able to get this to work using the following inside the DocumentCompleted event:

    IHTMLDocument2 Doc = browserControl.browser.Document.DomDocument as IHTMLDocument2;
    if (Doc != null) Doc.designMode = @"On";
    

    Thanks everyone!

提交回复
热议问题