Click here to Skip to main content
15,904,153 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How can i add a verticle scrollbar to a listbox in asp.nt
Posted

1 solution

As much I remember, vertical scroll bar appears automatically for a listbox as soon as the items increase in it that occupy more than the defined height. Set a height parameter of your listbox and it will automatically show you scrollbar, once items cross it.


To get a horizontal scroll in listbox, you can put the listbox in a div with it's attribute 'overflow' or 'overflow-x' set as 'auto'.

Have a look at this: Finally a Horizontal Scroll Bar List Box in ASP.NET![^]
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900