Label wrap

L

Lelle

i have text in a access database that is input from a multiline textbox.

now i want to display this text in a Label but then im not able to get det
correct format with linewrapping. i do wraps at control widht end..but i
becomes pretty unreadable couse there is several wraps in the text.

if i reads the text into a multiline textbox it seems to work

but it is not that nice output...
anyone has some good input, guess this is a newbie question
maybe i should use another control and not the label control
 
K

Karl Seguin

someLabel.Text = someValue.Replace(System.Environment.NewLine, "<br />")

perhaps?

Karl
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,062
Latest member
OrderKetozenseACV

Latest Threads

Top