Hi All,
I developing HTML editor using WebBrowser control. Which is work fine in IE8 compatible systems but not working in IE9. IE9 disabled the WebBrowser control because of this I'm not able to edit my this control. Below I shows the sample code of my program.
I drag the WebBrowser control into my Form.
private IHTMLDocument2 doc;
private void Form1_Load(object sender, EventArgs e)
{
webBrowser1.DocumentText = "<html><body></body></html>";
doc = webBrowser1.Document.DomDocument as IHTMLDocument2;
doc.designMode = "On";
webBrowser1.Document.ExecCommand("Copy", false, null);
webBrowser1.Document.ExecCommand("Paste", false, null);
}
Kindly give the solution for this issue.
Hariharan A