Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ListBox / Scroll Bar
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00922909
Message ID:
00927655
Vues:
20
Hi Danny,

If you want a listbox to show a horizontal scroll bar then you need to wrap the control in a div tag (or span) and set the desired width, then set the wrapper element to use a scrollbar on horizontal overflow. Here is an example:
<div style="width:80px; overflow-x:auto">
    <asp:ListBox id=YourListBox runat="server"></asp:ListBox>
</div>
>Hey there all...
>
>Is there anyway using CSS or any other method that will allow one to get a horizontal scroll bar to show on a list box for Web Forms? It is very easy in Win Forms, but I haven't been able to get it to work with Web Forms.
>
>Many Thanks in Advance...
-----------------------------------------

Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.com
www.prenia.com
Weblog: blogs.prenia.com/cathi
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform