Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 495
  • Last Modified:

MSHTML Reference

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
vbturbo
Asked:
vbturbo
1 Solution
 
Mohamed ZedanCommented:
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
 
vbturboAuthor Commented:
Thanks

0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now