Truncated text in a combo box!

J

Jeff Q

I wonder if anyone can shed any light on this?

I'm running a query triggered by the change event of a combo box. What it
does
is to look up the new value for combo1 against a table of possible values
for combo2.

For counter = 1 To UBound(vaPossActions, 1)
If vaPossActions(counter, 1) = flPossActions Then
cbSecActions.AddItem vaPossActions(counter, 2)
End If
Next counter

The actual code works fine but, for some unfathomable reason, the data
displayed in combo2 is truncated to a fixed width whilst it's being chosen,
only when it's selected (and returns to a single line display) does it show
the whole line of text.

Am I doing something wrong or is this just "one of those things"?

TIA

Jeff
(I'm not a little teapot for replies!)
 
T

Tom Ogilvy

It sounds more like the width of the dropdown list is too narrow.

Look at your setting for the ListWidth property.
 
J

Jeff Q

Tom Ogilvy said:
It sounds more like the width of the dropdown list is too narrow.

Look at your setting for the ListWidth property.

Tom, you really are frighteningly good!!

To my mind this combobox width is a really strange behaviour, especially as
their seems to be no "autosize" type functionality

Jeff
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top