Click here to Skip to main content
13,091,417 members (68,850 online)
Rate this:
Please Sign up or sign in to vote.
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
Posted 3-Aug-11 19:51pm
Updated 8-Aug-11 10:23am

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Hariarjunan 4-Aug-11 2:18am
Hi Majumder,

Thanks for your soon reply. I saw pages from your links. Soon I will let you know once my issue solved.
Hariarjunan 5-Aug-11 0:56am
Hi Majumder,

I tried the solution you gave but still my problem was not solved. I founded that what is the exact problem. There is no issue in WebBrowser control. I'm using "IHTMLDocument2" class that only blocking the WebBrowser control.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web02 | 2.8.170813.1 | Last Updated 8 Aug 2011
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100