Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB.NET 1.0 > VB.NET 2002/2003 Basics
|
VB.NET 2002/2003 Basics For coders who are new to Visual Basic, working in .NET versions 2002 or 2003 (1.0 and 1.1).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB.NET 2002/2003 Basics 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 January 18th, 2005, 06:15 PM
Registered User
 
Join Date: Jan 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default scrollbars or wordwrap on listboxes?

I had such good luck with my last question that I'll ask another!

is there some way to put a horizontal scrollbar on a listbox? I found the Scrollbars property for textboxes, but couldn't find anything comparable on listboxes. alternatively, is there some way to turn on word wrap in a listbox? one of the items that I'm adding to the box can potentially be longer than the width of the box, and the display gets truncated.

thanks!
Jo
 
Old August 9th, 2006, 10:27 PM
Registered User
 
Join Date: Aug 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi, i do faced the same problem as yours. May i ask have u solved this problem? mind to share with me on how you solved it? thanks a lot!!

 
Old August 10th, 2006, 11:55 AM
Friend of Wrox
 
Join Date: Nov 2004
Posts: 1,621
Thanks: 1
Thanked 3 Times in 3 Posts
Default

Others may come behind and disagree, but my inclination is to believe that a horizontal scroll bar is not possible.
As to wrapping, I’m pretty confident that this is not a possibility—How would you distinguish between line 2 of item 1, vs. line 1 of item 2? There would be no visual difference between those 2 cases, unless the list had horizontal lines separating elements. (And they don’t have that...)
 
Old August 10th, 2006, 07:12 PM
Registered User
 
Join Date: Aug 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

So what is your proposal on this issue? i have tried many ways, but all failed!! do you know is there any way of display the tips for that record when the mouse in over it in ASP programming???

 
Old August 14th, 2006, 03:53 PM
Friend of Wrox
 
Join Date: Nov 2004
Posts: 1,621
Thanks: 1
Thanked 3 Times in 3 Posts
Default

Could you please spin a story of what you want to do?

“User clicks on a link to this page, and then . . . ”
 
Old August 14th, 2006, 08:57 PM
Registered User
 
Join Date: Aug 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I am doing some project in ASP, and there is a listbox in the page. The problem now is, some record cannot fully shown in the listbox as the width of the record is bigger than the width of the listbox. i do not want to solve this problem by just adjusting the width of the listbox as if the record's width keep on changing, then i need to change the width again. As there is no horizontal bar in listbox and wordwrap is not possible, what i can think of now is to show the tips(the whole sentence) for that record when the mouse is pointing at that record. so that user still can read the whole sentence although the record cannot fully show. So now my question is, how can i show the tips in a listbox using ASP?

 
Old August 15th, 2006, 11:39 AM
Friend of Wrox
 
Join Date: Nov 2004
Posts: 1,621
Thanks: 1
Thanked 3 Times in 3 Posts
Default

I think your approach is not the best. I, too, have list boxes on web pages that are too long to show the data. What I did to overcome this is that I put a button next to the list box’s arrow, which when clicked opens a modal web page that is far wider, and has the whole string showing. When they select an item on the modal dialog page, it sets the value of the listbox in the parent page before it is closed. (I pass a reference to the parent page to the dialog so that it can modify that page’s items directly.)





Similar Threads
Thread Thread Starter Forum Replies Last Post
Listboxes Sub-Listboxes and Table Linking MJB05 Access 4 September 20th, 2005 12:37 PM
wordwrap problem! recepkocur Pro JSP 0 December 14th, 2004 05:26 AM
wordwrap problem! recepkocur JSP Basics 0 December 14th, 2004 05:25 AM
scrollbars=? larry Javascript How-To 2 August 28th, 2004 02:31 AM
Excel VBA - Wordwrap conundrum Shack Excel VBA 1 May 21st, 2004 06:12 AM





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