|
-
combobox with long list
I got combo box and list box that contain long list. I managed to solve the
list box using api
but left out with the combo box. Is there any combo box that can scroll
horizontally and look through the
list???
thanks.
jsp
-
Re: combobox with long list
You might want to try using a standard or data-bound grid control(either the
default or third-party) over the list... this would solve the problem you
mentioned from what I understand of it, but will likely add to the resource
load a bit.
-
Re: combobox with long list
The standard combo box does not include a feature to scroll horizontally in
the drop-down portion of the control. However, you can adjust the width
of the drop-down to display the widest item in the list. This is done by
sending the CB_SETDROPPEDWIDTH message to the control with the SendMessage
API call. You can determine the width of each item in the list using the
form's TextWidth method. After you make some minor adjustments to this value,
you can use this width to set the dropped width. If this is what you are
looking for, send me an e-mail at tim@vbstyleguide.com and I will send you
back a routine that does all of this when you pass it a combo control.
-----
Tim Patrick
tim@vbstyleguide.com
Similar Threads
-
By Tim Manos in forum VB Classic
Replies: 4
Last Post: 10-19-2001, 06:06 AM
-
By Ani in forum VB Classic
Replies: 2
Last Post: 10-18-2000, 10:50 PM
-
By Julian Milano in forum VB Classic
Replies: 2
Last Post: 08-11-2000, 12:11 PM
-
By Julian Milano in forum VB Classic
Replies: 0
Last Post: 08-10-2000, 09:16 PM
-
By Kunal Sharma in forum VB Classic
Replies: 2
Last Post: 04-25-2000, 03:45 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks