>.ColumnWidths = LTRIM(STR(.Width-IIF(.ListCount>EVL(.DisplayCount,7),39+SYSMETRIC(5),39))); >+ REPLICATE(',0',.ColumnCount-1) >Doesn't work. E.g. the affect is oposite - even if I have scrollbar, the drop-down width is less than the combo's width on the scrollbar's width.
.ColumnWidths = LTRIM(STR(.Width-IIF(.ListCount>EVL(.DisplayCount,7),39,39-SYSMETRIC(5)))) ; + REPLICATE(',0',.ColumnCount-1)You thought 39 was for smaller sets, but my 39 worked for bigger sets, so I just had to flip the logic.