WinForms: How to align LinkLabel in a paragraph of text?

I have a shortcut filled with dynamic text. This is often a paragraph or so. I need to easily integrate LinkLabel at the end of this paragraph with the words "More ...".

It should look like this:

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur laoreet bibendum tortor. Donec lacinia orci euismod lorem mollis consectetur. Pellentesque velit lacus, auctor in dignissim ac, malesuada at justo. The predominant bibendum tempus facilisis. More details

I have included Label and LinkLabel inside the panel, but I cannot align these two controls so that they merge seamlessly.

How to do it in WinForms?

Thank.

+5
source share
1 answer

Add all the text in LinkLabel and use the LinkArea property to set which area in the text is the actual link.

+5
source

All Articles