Solved

MSHTML Reference

Posted on 2006-11-05
2
489 Views
Last Modified: 2012-08-13
Hi

im going to build a small html editor in windows.form useing a usercontrol - in vs 2005 / net 2.0

and have been looking a bit around on the net to find the easiest approach to this.

What is preferrable to use with net 2.0?

AxSHDocVw.AxWebBrowser and the MSHTML/dom methods

Or use the

windows.system.forms.Webbrowser and MSHTML/dom methods

and/or is there a upgrade to mshtml ?

any  help , links , sample code , and info is appreciated

vbturbo


0
Comment
Question by:vbturbo
2 Comments
 
LVL 7

Accepted Solution

by:
Mohamed Zedan earned 250 total points
ID: 17876215
They are both the same but considering that you are using NET 2.0 I'd go for windows.system.forms.webbroswer method because it's already included in the framework ...

I already did something similar in NET 1.1 but using the first method because that was what's available to me .... :)

as for an example here is one that you'll like

This code uses AxSHDocVx.AxWebBrowser but it's easily converted to the NET 2.0 webbrowser control as you'll find all the method calls translate to their counterparts in the NET Framework

http://www.codeproject.com/csharp/HtmlEditor.asp

0
 
LVL 18

Author Comment

by:vbturbo
ID: 17877464
Thanks

0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Summary: Persistence is the capability of an application to store the state of objects and recover it when necessary. This article compares the two common types of serialization in aspects of data access, readability, and runtime cost. A ready-to…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question