How to set HorizontalAlignment in a combobox?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi guys!

Does anyone know how to set the HorizontalAlignment in an editable combobox (DropDownStyle = ComboBoxStyle.DropDown)?

I have a combobox which pulls its data from a datasource. The text in the datasource is wider than the combobox. When the combo is entered, the text is selected (gets blue), but it is right-aligned, so the end of the text is visible. I would prefer to see a beginning instead, but I do not know how to set HorizontalAlignment.Left in a combobox.

Many thanks,
Suzan
 
Getting closerâ€

Setting the Combobox to OwnerDrawnFixed and overriding the OnDrawItem it is possible to control how the items are drawn in a DropDown list, but NOT how to draw the item when the combo is entered

Having the right-aligned combo is very annoying if the combo features the AutoComplete function – you cannot see what you are typing

Any ideas

Phil
 
Back
Top