I want to show html formatted string in my winform application. What control should I use?
Use WebBrowser
control to display html content in WinForms applications.
You can specify just html content:
Dim html As string = "<span>my html content</span>"
webBrowser.DocumentText = html
or specify path to the html content:
webBrowserNotes.Url = "my-html-content.html"
If you just want "simple" HTML formatting (e.g. underline, bold, text color, etc) you could use this custom control from Oscar Londono on code project: http://www.codeproject.com/KB/edit/htmlrichtextbox.aspx
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With