Troyes234
Troyes234

Reputation: 41

How do you display HTML in windows app?

I have a bunch of HTML code that I need to display in a label/textbox in a windows app written in c#. It should be in such a way that the output shows the HTML formatted text, rather than the HTML code itself.

How can I do this?

Upvotes: 4

Views: 8563

Answers (5)

Christopher Tarquini
Christopher Tarquini

Reputation: 11342

If WebBrowser doesn't suit your needs you can check out these libraries with HTML label/control support

Upvotes: 1

Edward83
Edward83

Reputation: 6686

Render your HTML in WebBrowser control. It has special events for document and you can iterate by tags like this Hope it will help you;)

Upvotes: 3

Edoardo Pirovano
Edoardo Pirovano

Reputation: 8334

The HTML Editor (a wrapper for MSHTML, the rendering portion of Internet Explorer) in read-only mode might be what you need.

Upvotes: 0

Mario
Mario

Reputation: 36487

There's a web browser control using IE's rendering engine to display HTML content. You might as well be able to do some simple parsing yourself and use a RTF control but that way you will be rather restricted.

Upvotes: 1

Stefan P.
Stefan P.

Reputation: 9519

Check out WebBrowser

Upvotes: 1

Related Questions