I have tried CSS: overflow: auto. It doesn't work. Any way to achieve it?
Do I need to create my custom control as I have seen it on ASP.NET forum?
I have tried CSS: overflow: auto. It doesn't work. Any way to achieve it?
Do I need to create my custom control as I have seen it on ASP.NET forum?
I would go with creating a custom control like you mentioned.
What is your desired goal? Creating your own scrollbar to put in the listbox?
Try this control from the AJAX Control Toolkit..
http://www.asp.net/AJAX/AjaxControlToolkit/Samples/DropDown/DropDown.aspx
this should work:
listBox1.Rows = listBox1.Items.Count;
it causes all items are visible is SELECT html tag. You can place it to your own div set overflow and make your own scrollbars if you want.