Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Multi Line label or can I switch off scroll bars on Text
Message
General information
Forum:
ASP.NET
Category:
Mobile development
Miscellaneous
Thread ID:
00833737
Message ID:
00833834
Views:
39
Thanks for the solution Paul


As you say the easiest way is to just insert the tags into the string before it goes in the label text

ie

mystr = "The Quick brown
jumps over thge lazydog
"




>>I am doing an app in ASP .net
>>
>>I often need to display several lines of text in one control. I can do this in a read only multi line text box but it has vertical scroll bars which are not needed.
>>
>>I can not seem to do a multiline label. Is this possible. I dont want to do lots of since line labels.
>>
>
>If you know where you want to add a break in your line, you could probably just add the
tag to your label text whereever you want a line break. If not, the one other way I can think of doing this is via CSS (although I don't think this will work for every browser). You can create a CSS class that has something like this in it:
>
>
>.NoWrap
>{
>  overflow:hidden;
>}
>
>
>Then, set the CssClass property of the textbox to NoWrap.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform