Pregunta

I have a label being populated with dynamic text. It is often a paragraph or so in length. I need to seamlessly integrate a LinkLabel at the end of this paragraph with the words "View 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. Praesent bibendum tempus facilisis. View more ...

I've included a Label and a LinkLabel within a panel but cannot align these two controls so that they flow together seamlessly.

How do I accomplish this within WinForms?

Thank you.

¿Fue útil?

Solución

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

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top