i've got a ComboBox that i generate dynamically and fill with some items. i would like to set this control's width to the width of the longest item. how do i count the display width of some text?
edit: i'm using windows forms, but i would like to do it in asp.net as well