Dropdown List Box and Long List Items 
Author Message
 Dropdown List Box and Long List Items

Hello,

I would like to know if there is a way to display the whole string in a
dropdown list box even if the string is longer than the listbox control.

Ie, I have room on a form for a listbox of only about 1 inch long, but my
text is 2 to 3 inches long.  I have seen listboxes in other environments
that will display up to the longest text even if the text is longer than the
box.

Any help appreciated.

Spatch



Sat, 13 Sep 2003 17:59:11 GMT  
 Dropdown List Box and Long List Items
Spatch,

Try this:

http://www.mvps.org/vbnet/code/comboapi/combowidth.htm

Matt

====================================

http://www.msjogren.net/dotnet/

CodeHound - The Software Developer's Search Engine
http://www.codehound.com



Sat, 13 Sep 2003 20:01:27 GMT  
 Dropdown List Box and Long List Items
Thank you very much!  That is exactly what I needed.

Spatch


Quote:
> I've attached a BAS module that does this and more. Just add it to your
> project and call the functions (all well documented).

> Rocky Clark (Kath-Rock Software)



> > Hello,

> > I would like to know if there is a way to display the whole string in a
> > dropdown list box even if the string is longer than the listbox control.

> > Ie, I have room on a form for a listbox of only about 1 inch long, but
my
> > text is 2 to 3 inches long.  I have seen listboxes in other environments
> > that will display up to the longest text even if the text is longer than
> the
> > box.

> > Any help appreciated.

> > Spatch



Sun, 14 Sep 2003 01:41:51 GMT  
 Dropdown List Box and Long List Items
Here is a routine that will autosize the combo box.

http://www.vbrad.com/pf.asp?p=Source/src_autosize_cmb.htm

--
Robert Gelb
www.vbRad.com
Source, Tips, Tricks, Components


Quote:
> Hello,

> I would like to know if there is a way to display the whole string in a
> dropdown list box even if the string is longer than the listbox control.

> Ie, I have room on a form for a listbox of only about 1 inch long, but my
> text is 2 to 3 inches long.  I have seen listboxes in other environments
> that will display up to the longest text even if the text is longer than
the
> box.

> Any help appreciated.

> Spatch



Sun, 14 Sep 2003 13:09:14 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. name of one list item is longer than the width of the list box

2. DBCombo - make dropdown list longer; preselect first item

3. Newbie: Set a combo box style(2)/Dropdown list to the first element in the list

4. Newbie: Set a combo box style(2)/Dropdown list to the first element in the list

5. Newbie: Set a combo box style(2)/Dropdown list to the first element in the list

6. ToolTip show list item on list box ????

7. Mover list box to reorder items in list

8. tooltip for items on a dropdown list

9. Show first item in Dropdown List

10. Setting # of Items in ComboBox DropDown List

11. Adding items to dropdown list is slow

12. Adding multiple items from File Box to List box

 

 
Powered by phpBB® Forum Software