Avatar of brokeMyLegBiking
brokeMyLegBiking

asked on 

control to view HTML

Is there a way besides using the MSHTML control to view HTML?

I am making a windows desktop application, and I would like a way to format text, and make it pretty. HTML would be my first preference, but I don't want to have to include the MSHTML control.

I know that in Framework 2.0, there is a .NET HTML viewer, is there anything in framework 1.1 that will accomplish this?

Is there anyway I could open up the users local browser and pass HTML to it?
Visual Basic.NET

Avatar of undefined
Last Comment
brokeMyLegBiking
ASKER CERTIFIED SOLUTION
Avatar of jgarr76
jgarr76

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of prakash_prk
prakash_prk
Flag of India image

why you can't use the webbrowser control?
AxSHDocVw.AxWebBrowser


Avatar of prakash_prk
prakash_prk
Flag of India image

Add /Remove Items - > Com Components -> Microsoft Web Broswer Control
Avatar of jgarr76
jgarr76

The webbrowser control is ok for displaying simple html, but there are at least two drawbacks:

1.  It is a com component and not part of the .NET Framework.  You would have to distribute the dll with your program.

2.  It behaves like a crusty old version of IE.  You would most likely end up with a better browser by using the system's default browser (which the user is probably more likely to keep up to date).  The process.start methode above will use the system's default browser.

-Jon
Avatar of brokeMyLegBiking

ASKER

Jgarr76 is right, I don't want to have to lug a DLL around, and I don't like how big and slow the AxSHDocVw.AxWebBrowser control is.

Avatar of brokeMyLegBiking

ASKER

briliant brilliant brilliant.

jgarr76, your solution works fantastically. thx. I've been looking for a solution like that for a while. good job.

Visual Basic.NET
Visual Basic.NET

Visual Basic .NET (VB.NET) is an object-oriented programming language implemented on the .NET framework, but also supported on other platforms such as Mono and Silverlight. Microsoft launched VB.NET as the successor to the Visual Basic language. Though it is similar in syntax to Visual Basic pre-2002, it is not the same technology,

96K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo