Solved

MSHTML Reference

Posted on 2006-11-05
2
483 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

This article describes a simple method to resize a control at runtime.  It includes ready-to-use source code and a complete sample demonstration application.  We'll also talk about C# Extension Methods. Introduction In one of my applications…
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

707 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now