Is it possible to have a combo display at a wider width than it's resting
state. I want to have it display all 3 columns when it drops down, but it
only needs to be .5" wide to display the selected code. Seems like a waste
space to make it 2" wide. My cheat is to adjust the width in code, but I
was wondering if there was a setting in the properties that would do this
automatically.
TIA
Paul

Signature
Can't we all just get along?
Sprinks - 14 Oct 2005 19:03 GMT
Paul,
No, there is only one Width property per control, no HasFocusWidth and
NotHaveFocusWidth. But I think your solution is the best one.
Sprinks
> Is it possible to have a combo display at a wider width than it's resting
> state. I want to have it display all 3 columns when it drops down, but it
[quoted text clipped - 5 lines]
> TIA
> Paul
Dirk Goldgar - 14 Oct 2005 19:04 GMT
> Is it possible to have a combo display at a wider width than it's
> resting state. I want to have it display all 3 columns when it
> drops down, but it only needs to be .5" wide to display the selected
> code. Seems like a waste space to make it 2" wide. My cheat is to
> adjust the width in code, but I was wondering if there was a setting
> in the properties that would do this automatically.
The combo box's ListWidth property is what you're looking for. It
defaults to "Auto", which just matches the width of the control, but you
can set it wide enough that all columns show when you drop down the
list.

Signature
Dirk Goldgar, MS Access MVP
www.datagnostics.com
(please reply to the newsgroup)
Paul Hammond - 14 Oct 2005 19:28 GMT
Thanks Dirk
> > Is it possible to have a combo display at a wider width than it's
> > resting state. I want to have it display all 3 columns when it
[quoted text clipped - 7 lines]
> can set it wide enough that all columns show when you drop down the
> list.
Sprinks - 14 Oct 2005 19:19 GMT
Apologies to you, Paul, and my thanks to you, Dirk. I had been misinformed,
and wasting a lot of space on my forms up to now. Not any more.
Sprinks
> Is it possible to have a combo display at a wider width than it's resting
> state. I want to have it display all 3 columns when it drops down, but it
[quoted text clipped - 5 lines]
> TIA
> Paul
Paul Hammond - 14 Oct 2005 19:28 GMT
Thanks to you also. It's so great having all this talent to rely on.

Signature
> Apologies to you, Paul, and my thanks to you, Dirk. I had been misinformed,
> and wasting a lot of space on my forms up to now. Not any more.
[quoted text clipped - 10 lines]
> > TIA
> > Paul
fredg - 14 Oct 2005 20:51 GMT
> Is it possible to have a combo display at a wider width than it's resting
> state. I want to have it display all 3 columns when it drops down, but it
[quoted text clipped - 5 lines]
> TIA
> Paul
You can do it with code, but why not display the Combo's property
sheet and simply set the Combo Box ListWidth property to whatever
width you want (2").
The Default setting is Auto.

Signature
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail