ComboBox Question

pjfatboy
09-04-2003, 12:04 AM
In the Combobox properties there is no alignment option to center the list items. Can this be done through code?

ashish908
09-04-2003, 05:44 AM
In the Combobox properties there is no alignment option to center the list items. Can this be done through code?

There is no property of Combo box.

You can do that by coding. What I think is you can judge the number of characters that a combo box shows, then pad your combo values with required spaces.

pjfatboy
09-05-2003, 10:54 AM
In the Combobox properties there is no alignment option to center the list items. Can this be done through code?

There is no property of Combo box.

You can do that by coding. What I think is you can judge the number of characters that a combo box shows, then pad your combo values with required spaces.


I tried that but when you add one of the items from the list to another control it offsets that item however many spaces you pad that item with.

Thinker
09-05-2003, 10:55 AM
You could use LTrim$() when you assign that item's text to another control.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum