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.
Set Label 's AutoSize property to False , TextAlign property to MiddleCenter and Dock property to Fill .
We specify the margin-bottom of our <div> element. Then, we set the display of the <label> element to "inline-block" and give a fixed width. After that, set the text-align property to "right", and the labels will be aligned with the inputs on the right side.
A link label is like a hyperlink that you'd see on a webpage. It's a label thats blue and has an underline and, when clicked, can point to a URL. A label is just a label.
Add all text to the LinkLabel, and use the LinkArea property to set what area in the text is actual a link.
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