Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / March 2006

Tip: Looking for answers? Try searching our database.

Clarification about Microsoft.mshtml component within .NET 2 frame

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Filippo Bettinaglio - 12 Mar 2006 20:25 GMT
Hi all,

In the past 3 days I have done some research about Microsoft.mshtml
component within .NET 2 framework.

I need some clarification/comfermation about the Microsoft.mshtml componet
and microsoft stargey. In specific: Microsoft.mshtml within the .net 2
framework

1.    mshtml.HTMLDocument is not part of the .net 2 framework.

2.    it seems that microsoft suggests to use .net managed classes. E.g.
System.Windows.Forms.HtmlDocument instead than mshtml.HTMLDocument

3.    Those new classes works fine with the web control (because is managed)
but they are limited in the use, specifically in interfacing  with Internet
Explorer 6 and IE7 Beta 2. (e.g. I cannot access from a C# user control the
DOM of the HTML in which the control is hosted)

Can someone comment the above 3 point? Are they correct?

Next question:

Which are the implication redistribuiting the Microsoft.mshtml with a .NET 2
applications?

Is it only a metter of distribuiting the file (8 MB) with my application? Or
is there anything else?

Many Thanks,

FILIPPO
Dmytro Lapshyn [MVP] - 13 Mar 2006 15:27 GMT
Hi,

> 1. mshtml.HTMLDocument is not part of the .net 2 framework.

No, it apparently isn't.

> 2. it seems that microsoft suggests to use .net managed classes. E.g.
> System.Windows.Forms.HtmlDocument instead than mshtml.HTMLDocument

I haven't seen such suggestions (which however does not negate their
existence). Anyway, if there's something in the Framework already, I'd try
it first before resorting to any interaction with unmanaged code. I suppose
that System.Windows.Forms.HtmlDocument is only a wrapper around
mshtml.HTMLDocument, but this is kind of a blind (or educated, if you wish)
guess.

> 3. Those new classes works fine with the web control (because is managed)

I really doubt the Web control is managed. Most likely it is just a wrapper
around the IE's ActiveX control.

> but they are limited in the use, specifically in interfacing  with
> Internet
> Explorer 6 and IE7 Beta 2. (e.g. I cannot access from a C# user control
> the
> DOM of the HTML in which the control is hosted)

This might be possible. You can try to access DOM by using late binding  (VB
.NET seems to have a native support for it, whereas in C# you'll have to use
reflection).

> Hi all,
>
[quoted text clipped - 32 lines]
>
> FILIPPO

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.