How to set HorizontalAlignment in a combobox?

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
 
G

Guest

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
 

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