Combo box drop-down: left justified vs. right justified logic

When you click on a combo box that contains a valid .RowSource property, a drop-down appears.  Is there any logic for whether the drop-down is left-justified or right-justified to the combo box, and if so what is it?

I'm trying to create a combo box that is only .Width=.2, and have the drop-down extend left to match the width of a textbox there, and instead it is going right.

Right-justified meaning the right edge of the dropdown is aligned with the right edge of the control.
Left-justified meaning the left edge of the dropdown is aligned with the left edge of the control.

LVL 66
Jim HornMicrosoft SQL Server Developer, Architect, and AuthorAsked:
Who is Participating?
CetusMODConnect With a Mentor Commented:
PAQ'd, 500 points refunded.
Community Support Moderator
Steve BinkCommented:
The logic I've seen is numeric vs. text, and follows the same rules Excel does for default formatting.  

Numeric = left-justified
Text = right-justified (General)
Anything not strictly numeric = text

I think you mean you want to control were the dropdown will be aligned and not the values in it...

If so, you can't control that.  Normally the dropdown's left edge will be aligned with it's combobox left edge unless there isn't enough space on the screen.
The new generation of project management tools

With’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

Steve BinkCommented:
DOH!  Yeah, I misunderstood what you were asking.  jmantha709 has it right, I think.  Have you played with putting the control next to the edge of the form/screen?
Jim HornMicrosoft SQL Server Developer, Architect, and AuthorAuthor Commented:
I just figured it out, it's ComboBox.ScrollBarAlign property, which in addition to changing the scrollbar location also changes the alignment of the dropdown.

Learn something new every day.

I had a sized form, where my combo box was on the far right side, and the drop-down was going to the right, away from the form.

Barring any objections, I'll ask for a PAQ/Refund on this one.
I've seen this happen when I've built my list/combo and supplied it's source in default font, and then changed the font size.
Don't know if it helps...
Steve BinkCommented:
ScrollBarAlign...I said that didn't I?  :)  PAQ/Refund, aye.
All Courses

From novice to tech pro — start learning today.