Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ListBox / Scroll Bar
Message
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00922909
Message ID:
00927906
Views:
18
>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>


Cathi,

Many thanks for the reply! I tried creating the div, however, hit a couple of snags... The place I am needing the Hz Scroll Bar is in a Composite Custom Control... When .Net renders the control it converts the div to a span ... The 2nd problem comes from the fact I am using absolute positioning for the list within a panel... Once the list box is wrapped in the div / span the positioning goes very crazy. Those two together are giving me fits with the div solution. I appreciate the advice very, very much.

Many Thanks,
Danny
Previous
Reply
Map
View

Click here to load this message in the networking platform