Attention: We are retiring the ASP.NET Community Blogs. Learn more >

Building XML Editor

Step 1: Open win forms

Step 2: Add reference to Microsoft Web Browser (COM)

Step 3: Add the Code to the forms

IHTMLDocument2 doc;
axWebBrowser1.Navigate(“
http://msdn.microsoft.com/”);
axWebBrowser1.PutProperty(
"EditMode" ,true );
object boxDoc = axWebBrowser1.Document;
doc = (IHTMLDocument2)boxDoc;
doc.designMode = "On";

I didn’t Find this property in the new WebBrowser control,
so I go back to the COM Component

No Comments