Is there a lightweight, preferred open source label management format for dotnet?

I was looking for a way to use a simple markup language or plain HTML when displaying text in WinForm applications. I would like to avoid embedding the webbrowser control, because in most cases I just want to highlight one word or two in a sentence.

I reviewed the use of RTFControl, but I find it a bit heavy and I don’t think the “language” used for formatting is simple.

Is there a simple control that allows me to display strings like:

This is a string string. with various formations.

I would be very careful if you could specify the font and / or size of the text.

Oh, dotnet 3.5 and WPF / xaml are not an option.

+4
source share
1 answer

Well, just use HTML. In some of our applications, we used the following “FREE” control, and it is simply beautiful.

We can define the UI in the HTML markup, and then render it using this control:

http://www.terrainformatica.com/htmlayout/main.whtm

We initially started looking at HtmlToRTF converters so that we can use the RTF control to render the interface, but there are too many options for matching between the two formats. So, we have finished using the above control.

The only prerequisite is the mention of their name in your "About the application" field.

+7
source

Source: https://habr.com/ru/post/1276304/


All Articles