Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Multi Line label or can I switch off scroll bars on Text
Message
Information générale
Forum:
ASP.NET
Catégorie:
Développement mobile
Divers
Thread ID:
00833737
Message ID:
00833834
Vues:
38
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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform