|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#1 |
|
Member (9 bit)
|
Visual Basic Question (Scrolling)
I have a list of about 100 items in a combo box on my form. Is there any way I can make the visible list larger when they hit the drop down button to see the items in the list? Right now it must be at some default length but I cannot find a way to make it so the list can be longer so they don't have to scroll through so much stuff in order to see it. Any help would be appreciated.
Also, on a side note. Is there a way to automatically display a certain item in the middle of the list as the first thing that pops up when they focus on that object? Its a item called A0I - Buy Out in the list and I would like it to be the first item displayed but its sorted in order right now and I am not sure how to make it so it displays that "A0I - Buy Out" first since the database I am pulling the data from has it near the middle. Thanks.
__________________
Intel Dual-Core E8400 (E0), Thermalright XP-120, 2x1GB DDR2-1066 G.Skill, ATI X1800XT, SB X-Fi, Logitech Z-5500 5.1, 470W OCZ Powerstream, ASUS P5Q Pro, 500GB Seagate Barracuda, 300GB Seagate (backup), 74GB Raptor HD (old OS) |
|
|
|
|
|
#2 | ||
|
Come in Ray...
Join Date: Sep 2004
Posts: 1,668
|
Quote:
Quote:
|
||
|
|
|
|
|
#3 |
|
Professional gadfly
|
What version of Visual Basic? Is there a ListRows property for the combo box? That's what you would use to determine how many rows to display.
As for automatically displaying a certain value in a combo box, just set the combo box value to that default list item somewhere, like when it gets the focus. You should make sure you aren't overwriting any data that's already there, though. |
|
|
|
|
|
#4 |
|
~ Ryan ~
|
or you can do combobox(x).text = "text of object" and it should display that.
__________________
RiotCats.com, an internet domain specifically fabricated and visually erected for the appreciation of the feline kingdom! |
|
|
|
|
|
#5 |
|
Member (9 bit)
|
Cool! Thanks guys!
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|