HTML Editor control in Windows Forms 2.0

J

Joubert Nel

Hello,

Previously I leveraged mshtml, the IE component that supports editing HTML,
via the Microsoft-provided interop assembly.

However, it seems that this is not compatible with the .NET Framework 2.0.
Furthermore, I cannot seem to find any updates to the MS-IE interop that
will enable it to function with .NET 2.0.

Any ideas? (either a solution to use mshtml in .NET 2.0 or a 3rd party
control that can do the job)

Regards
Joubert
 
J

Joubert Nel

I found out I can use the control System.Windows.Forms.WebBrowser.

To allow editing, one can issue commands such as:

this.webBrowser.DocumentText = String.Empty;
this.webBrowser.Document.ExecCommand("EditMode", true, null);

Cheers
Joubert
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top