Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > General .NET
| Search | Today's Posts | Mark Forums Read
General .NET For general discussion of MICROSOFT .NET topics that don't fall within any of the other .NET forum subcategories or .NET language forums.  If your question is specific to a language (C# or Visual Basic) or type of application (Windows Forms or ASP.Net) try an applicable forum category. ** PLEASE BE SPECIFIC WITH YOUR QUESTION ** When posting here, provide details regarding the Microsoft .NET language you are using and/or what type of application (Windows/Web Forms, etc) you are working in, if applicable to the question. This will help others answer the question without having to ask.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the General .NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 28th, 2005, 03:04 AM
Friend of Wrox
 
Join Date: Sep 2004
Location: , , India.
Posts: 140
Thanks: 0
Thanked 0 Times in 0 Posts
Default how to add scroll bars in asp.net listbox control

I just want a horizontal scroll bar in my listbox.. is that possible???

 
Old December 28th, 2005, 03:47 PM
planoie's Avatar
Friend of Wrox
Points: 16,481, Level: 55
Points: 16,481, Level: 55 Points: 16,481, Level: 55 Points: 16,481, Level: 55
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

The resulting HTML for an ASP.NET listbox web control is a standard <select> tag. Unfortunately, this HTML element doesn't do horizontal scrolling. It just draws itself wide enough to show all of the widest option. If you assign an explicit pixel width to the control, it will just cut off the option text that is too wide.

-Peter
 
Old December 29th, 2005, 06:49 AM
Friend of Wrox
 
Join Date: Sep 2004
Location: , , India.
Posts: 140
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks I found a way out i put the list box in a div an gave div option of horizontal scrolling.. Not a very good UI but thats the only way out i found coz i cant trim my text....

 
Old January 26th, 2006, 11:39 PM
Registered User
 
Join Date: Jan 2006
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Can you provide me some example on how to add horizontal scroll bar in my listbox? I had try using <div> tag but it seen did not work.Thank





Similar Threads
Thread Thread Starter Forum Replies Last Post
asp.net 2.0 Gridview control vertical scroll bar kulkarnimonica ASP.NET 2.0 Professional 2 March 8th, 2010 08:14 AM
How to use scroll bars into EVC++ iriskab Visual C++ 0 October 15th, 2006 07:12 PM
launch IE browser & control scroll bars ? gjelson VB How-To 0 March 15th, 2006 11:20 PM
scroll bars LH Access 2 October 10th, 2003 09:54 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.