Combobox width not showing full data

M

Madiya

Hi all,
I have completed a project with the help of this NG which is running
fine but having a small problem.
I have a combobox on a userform.
This box shows texts strings collected from the sheets.
This text is not shown in full. I have tried to increase the box width
but then texts are shown in part only. rest of the width of box
dropdown is blank. Even I can see the half cherecter indicating there
is text but is not shown full.

There must be a setting for this and I am surly overlooking the same.

Pl help.

Regards,
Madiya
 
R

Rick Rothstein \(MVP - VB\)

What did you mean when you said "I have tried to increase the box width"?
How (by what means) did you increase it?

Rick
 
R

Rick Rothstein \(MVP - VB\)

By the way, there is a ListWidth property you can set to make the drop-down
portion of the control wider than the edit field (plus drop down arrow)
section... is that what you were trying to accomplish?

Rick
 
M

Madiya

By the way, there is a ListWidth property you can set to make the drop-down
portion of the control wider than the edit field (plus drop down arrow)
section... is that what you were trying to accomplish?

Rick

message



- Show quoted text -

Rick,
Thanks for reply.
I opened vba editor and dragged the comboboc border to increase its
width.
Now I tried listwidth also.
It increase the width of the dropdown but is not fully filled up with
the data.

for e.g. if text tring is "this is great NG to lot of things" then
combobox width is
====================
box drop down width is (increased with listwidth as suggested by you)
=================================

text appearing width is
============
text appeared is
this is great NG t

rest of the text is cut and is not appearing.

Any thoughts?
Hope I am explaining properly.
Regards,
Madiya
 
M

Madiya

Rick,
Thanks for reply.
I opened vba editor and dragged the comboboc border to increase its
width.
Now I tried listwidth also.
It increase the width of the dropdown but is not fully filled up with
the data.

for e.g. if text tring is "this is great NG to lot of things" then
combobox width is
====================
box drop down width is (increased with listwidth as suggested by you)
=================================

text appearing width is
============
text appeared is
this is great NG t

rest of the text is cut and is not appearing.

Any thoughts?
Hope I am explaining properly.
Regards,
Madiya- Hide quoted text -

- Show quoted text -

Hi Rick,
Got it.
It was the Columnwidths property which needs tweeking.

Still thanks to set me on the right track.

Regards,
Madiya
 
R

Rick Rothstein \(MVP - VB\)

Thanks for reply.
I opened vba editor and dragged the comboboc border to
increase its width.
Now I tried listwidth also.
It increase the width of the dropdown but is not fully filled
up with the data.

for e.g. if text tring is "this is great NG to lot of things" then
combobox width is
====================
box drop down width is (increased with listwidth as suggested by you)
=================================

text appearing width is
============
text appeared is
this is great NG t

rest of the text is cut and is not appearing.

The ComboBox is made up of two parts (not counting the drop down arrow)... a
TextBox that you can type into (what I think you are calling the ComboBox
width and which is sometimes called an Edit Field) and a ListBox that drops
down when you click the drop down arrow on the right side of the TextBox.

Now, are you saying that in the ListBox part, that the text is truncated as
shown above (with a lot of white space after it)? If so, that is a new one
on me... I've not seen that before. The only way I can duplicate what I
think you are describing is to set the ColumnCount to a value greater than 1
and also set the ColumnWidth to a value less than the number of points
necessary to display a complete line of text. Do you by any chance have
these two properties set like this?

Rick
 
M

Madiya

The ComboBox is made up of two parts (not counting the drop down arrow)...a
TextBox that you can type into (what I think you are calling the ComboBox
width and which is sometimes called an Edit Field) and a ListBox that drops
down when you click the drop down arrow on the right side of the TextBox.

Now, are you saying that in the ListBox part, that the text is truncated as
shown above (with a lot of white space after it)? If so, that is a new one
on me... I've not seen that before. The only way I can duplicate what I
think you are describing is to set the ColumnCount to a value greater than1
and also set the ColumnWidth to a value less than the number of points
necessary to display a complete line of text. Do you by any chance have
these two properties set like this?

Rick- Hide quoted text -

- Show quoted text -

Hi Rick,
You gussed right.
I had a problem with the dropdown list part, where text is truncated
with lots of
trailing white spaces even when width of dropdown list is much bigger.
I have a column count as 1 only which desplays text of one cell only.
If I put a very long text, then the text will be truncated and part of
the text will be shown.
Rest of the width of the dropdown list will be filled up with white
spaces.

If I increase Columnwidths property, entire text is desplayed.

Hope this explaination is ok.

If you need any more info or want me to do some trials, I will gladly
do it becouse you people are helping lots of other novises like me.


Regatds,
Madiya
 
R

Rick Rothstein \(MVP - VB\)

I opened vba editor and dragged the comboboc border to
Hi Rick,
You gussed right.
I had a problem with the dropdown list part, where text is truncated
with lots of
trailing white spaces even when width of dropdown list is much bigger.
I have a column count as 1 only which desplays text of one cell only.
If I put a very long text, then the text will be truncated and part of
the text will be shown.
Rest of the width of the dropdown list will be filled up with white
spaces.

If I increase Columnwidths property, entire text is desplayed.

Hope this explaination is ok.

If you need any more info or want me to do some trials, I will gladly
do it becouse you people are helping lots of other novises like me.
Since you have identified your problem was with the ColumnWidth property
setting, I'm assuming you handled the problem by resetting this property. Do
you still have a question pending or has it been resolved (kind of hard to
tell by the way you ended your last message to me)?

Rick
 
M

Madiya

Since you have identified your problem was with the ColumnWidth property
setting, I'm assuming you handled the problem by resetting this property. Do
you still have a question pending or has it been resolved (kind of hard to
tell by the way you ended your last message to me)?

Rick- Hide quoted text -

- Show quoted text -

Problem is solved.
Thanks again.
Regards,
Madiya
 

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