Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Multiple cbobox size property?

Status
Not open for further replies.

ebarratt

Programmer
Apr 10, 2002
53
US
Hello all,

Here is my Problem. I'm populating comboboxes and listboxes with values from a db. The problem is say if i have 3 values in my combobox and the largest length of those values is 4 but I want my combo or list boxes to always have a length of say 20 (padded with spaces.)

It looks really unprofessional for one record to have the box show a really small one and then the next record show a really big combo or list box cause the value for that record is larger. I know the size property allows me to show how many items at a time, and the multiple property turns a combobox to a list box but is there a property that allows me to make those boxes the same length no matter how small or large the value it's holding is?


Thanks all! Errol Barratt
work: 856-810-5712
home: 856-697-1593
*** If there is a possibility, I'm sure all the smart ones out there will enlighten me 8p
 
Is this all you're looking for
<SELECT NAME=&quot;combo&quot; STYLE=&quot;width:150px&quot; size=12>
<OPTION>a
<OPTION>b
<OPTION>c
<OPTION>d
<OPTION>e</SELECT>

jsut set the size limits for each to be slightly larger then the largest possible selection [bomb]
I may not get it the 1st or 2nd time,
but how sweet that 15th time can be.
admin@onpntwebdesigns.com
 
Thanks alot man.
Errol Barratt
work: 856-810-5712
home: 856-697-1593
*** If there is a possibility, I'm sure all the smart ones out there will enlighten me 8p
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top