Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Display HTML in a VB.net App.

Status
Not open for further replies.

PogoWolf

Programmer
Joined
Mar 2, 2001
Messages
351
Location
US
Hello all,
I'm trying to figure out a way to display an HTML document that the applucation has created in runtime.

any ideas?


The PogoWolf
 
Does it have to be in the app? you can use a shell start to fire the html doc up into the default browser if not.

There is an inetbrowser com control in vb 6, I beleive it's still available in .Net, but you'll have to track it down in the list of com references.

-Rick

----------------------
 
Yes, it needs to be in the app. I'm only wanting to use HTML as a quick way to format, and mark up data that's being displayed from my app.

I could (most likly should) use RTF.. but I don't want the hassle of learning all the RTF 'tags' to display formatted text.

I've been playing around with IE control, but 'setting' the text to the HTML doesn't display anything.. So I figured I would ask, since I'm sure someone out there has done this. =)


The PogoWolf
 
well I tried the RTF box.. didn't put the doc tags in.. perhaps that was causeing a problem.. let me test, and I'll get back with you.


Thanks again, Rick.


The PogoWolf
 
ahh well, right click on the toolbox, select customize. make sure you're on the Com components tab. Scroll down to Microsoft Web Browser.

Add it to your form, use .navigate to goto the html file, if memory serves correct.

-Rick

----------------------
 
Hmmm.. that could work. Wasn't planning to create and save the HTML itself..only to 'use' it to mark up the output from the program. That might be the only way to do it...


The PogoWolf
 
Are you wanting this text to be selectable? If not, I would just use .DrawString, and fonts and brushes.
 
Thanks for the Reply, Infinitelo
I checked the site, and where as there's some good movies that I'll be watching, I wasn't able to find anything specific to my issue.

The PogoWolf
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top